summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ReversiService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2024-01-20 09:56:13 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2024-01-20 09:56:13 +0900
commitbc7b2f18762dac4dc515649e766741c076159757 (patch)
tree765bac532ccc51151461f817c62c3e35f2589cfe /packages/backend/src/core/ReversiService.ts
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-bc7b2f18762dac4dc515649e766741c076159757.tar.gz
sharkey-bc7b2f18762dac4dc515649e766741c076159757.tar.bz2
sharkey-bc7b2f18762dac4dc515649e766741c076159757.zip
lint fix
Diffstat (limited to 'packages/backend/src/core/ReversiService.ts')
-rw-r--r--packages/backend/src/core/ReversiService.ts2
1 files changed, 1 insertions, 1 deletions
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),
});
}