add cleanup comment

This commit is contained in:
Nathaniel Tampus
2023-07-01 19:49:19 +08:00
parent 2b57b3f116
commit 70637a384d

View File

@@ -5,6 +5,8 @@ import type { DisconnectReason, Socket } from "socket.io";
import GameModel, { activeGames } from "../db/models/game.model.js"; import GameModel, { activeGames } from "../db/models/game.model.js";
import { io } from "../server.js"; import { io } from "../server.js";
// TODO: clean up
export async function joinLobby(this: Socket, gameCode: string) { export async function joinLobby(this: Socket, gameCode: string) {
const game = activeGames.find((g) => g.code === gameCode); const game = activeGames.find((g) => g.code === gameCode);
if (!game) return; if (!game) return;