update game data on when updating guest names

This commit is contained in:
Nathaniel Tampus
2023-03-19 21:23:15 +08:00
parent f564298c93
commit fcb0fd26fd

View File

@@ -7,6 +7,9 @@ import { activeGames } from "../db/models/game.model.js";
import { io } from "../server.js"; import { io } from "../server.js";
import * as UserModel from "../db/models/user.model.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) => { export const getCurrentSession = async (req: Request, res: Response) => {
try { try {
if (req.session.user) { if (req.session.user) {