feat(ttt/database): prefixed TTT database thingy to avoid pong conflicts

This commit is contained in:
Maieul BOYER 2026-01-05 15:43:32 +01:00 committed by Maix0
parent d222dfd332
commit d59e8f93c8
3 changed files with 12 additions and 25 deletions

View file

@ -98,7 +98,7 @@ export class StateI {
this.gameUpdate(gameId, u2.socket);
if (g.checkState() !== 'ongoing') {
this.cleanupGame(gameId, g);
this.fastify.db.setGameOutcome(gameId, u1.userId, u2.userId, g.checkState());
this.fastify.db.setTTTGameOutcome(gameId, u1.userId, u2.userId, g.checkState());
}
}, 100);
}