From 2921bce6f828e9ded6e7669f6f185642c8259078 Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Sun, 19 Mar 2023 21:23:15 +0800 Subject: [PATCH] update game data on when updating guest names --- server/src/controllers/auth.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/controllers/auth.controller.ts b/server/src/controllers/auth.controller.ts index 4029a4b..fb5042c 100644 --- a/server/src/controllers/auth.controller.ts +++ b/server/src/controllers/auth.controller.ts @@ -7,6 +7,9 @@ import { activeGames } from "../db/models/game.model.js"; import { io } from "../server.js"; import * as UserModel from "../db/models/user.model.js"; +import { activeGames } from "../db/models/game.model.js"; +import { io } from "../server.js"; + export const getCurrentSession = async (req: Request, res: Response) => { try { if (req.session.user) {