From bc7b2f18762dac4dc515649e766741c076159757 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 Jan 2024 09:56:13 +0900 Subject: [PATCH] lint fix --- packages/backend/src/core/ReversiService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/ReversiService.ts b/packages/backend/src/core/ReversiService.ts index cd990ba775..6e80261330 100644 --- a/packages/backend/src/core/ReversiService.ts +++ b/packages/backend/src/core/ReversiService.ts @@ -370,7 +370,7 @@ export class ReversiService implements OnApplicationShutdown, OnModuleInit { if (o.isEnded) { this.globalEventService.publishReversiGameStream(game.id, 'ended', { - winnerId: winner, + winnerId: winner ?? null, game: await this.reversiGameEntityService.packDetail(game.id, user), }); }