From be3a1c97c985264fe66c92d3a0f45fdb3df5239f Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Sun, 13 Mar 2022 18:31:44 -0600 Subject: [PATCH] Allow possibly not finding the game object in the DB --- server/src/objects/GameDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/objects/GameDB.ts b/server/src/objects/GameDB.ts index af1abdc..67b00fb 100644 --- a/server/src/objects/GameDB.ts +++ b/server/src/objects/GameDB.ts @@ -13,7 +13,7 @@ export class GameDB { }; /** Get's the Game object associated with the provided ID */ - public get(id: string): Game { + public get(id: string): Game|undefined { return this.games[id]; };