update game data on when updating guest names

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

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) {