From 39f71bb4d9a96fcb0c2d7db3a9a1e26751e95d99 Mon Sep 17 00:00:00 2001 From: apetitco Date: Mon, 22 Dec 2025 19:39:24 +0100 Subject: [PATCH] (dependencies): Updated `socket.io` and `socket.io-client` to 4.8.2, along with other dependency upgrades --- src/tic-tac-toe/src/app.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tic-tac-toe/src/app.ts b/src/tic-tac-toe/src/app.ts index 69614eb..163996a 100644 --- a/src/tic-tac-toe/src/app.ts +++ b/src/tic-tac-toe/src/app.ts @@ -7,7 +7,6 @@ import * as auth from '@shared/auth'; import * as swagger from '@shared/swagger'; import * as utils from '@shared/utils'; import { Server } from 'socket.io'; -import type { TicTacToeImpl } from '@shared/database/mixin/tictactoe'; declare const __SERVICE_NAME: string; @@ -78,12 +77,14 @@ async function onReady(fastify: FastifyInstance, game: TTC) { socket.emit('error', 'Invalid Move'); } else { + if (result !== 'ongoing') { + fastify.db.setGameOutcome('011001', 'Aless', 'Clara', result); + } fastify.io.emit('gameState', { board: game.board, turn: game.currentPlayer, lastResult: result, }); - fastify.db.setGameOutcome("011001", result); } });