diff --git a/server/src/game/game.service.ts b/server/src/game/game.service.ts index 783256c..07bd6c8 100644 --- a/server/src/game/game.service.ts +++ b/server/src/game/game.service.ts @@ -76,7 +76,7 @@ export class GameService { }) const newRunnerId = game.currentRun.runnerId == 1 ? 2 : 1 - const firstRun = await this.prisma.playerRun.findFirst({ where: { runnerId: newRunnerId } }) !== null + const firstRun = await this.prisma.playerRun.findFirst({ where: { runnerId: newRunnerId } }) === null const newRun = await this.prisma.playerRun.create({ data: { gameId: game.id,