From af14cfb11d31792cf2fe43aab027d33bb585e5e1 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Wed, 11 Dec 2024 22:34:15 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20d=C3=A9tection=20si=20on=20est=20s?= =?UTF-8?q?ur=20la=20premi=C3=A8re=20course?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/game/game.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,