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), }); }