From 70637a384ddf74b7edcf518cf60e44f859bd4509 Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Sat, 1 Jul 2023 19:49:19 +0800 Subject: [PATCH] add cleanup comment --- server/src/socket/game.socket.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/socket/game.socket.ts b/server/src/socket/game.socket.ts index 93a33fe..3e6cb85 100644 --- a/server/src/socket/game.socket.ts +++ b/server/src/socket/game.socket.ts @@ -5,6 +5,8 @@ import type { DisconnectReason, Socket } from "socket.io"; import GameModel, { activeGames } from "../db/models/game.model.js"; import { io } from "../server.js"; +// TODO: clean up + export async function joinLobby(this: Socket, gameCode: string) { const game = activeGames.find((g) => g.code === gameCode); if (!game) return;