Correction détection si on est sur la première course
This commit is contained in:
parent
49c320b2db
commit
af14cfb11d
@ -76,7 +76,7 @@ export class GameService {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const newRunnerId = game.currentRun.runnerId == 1 ? 2 : 1
|
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({
|
const newRun = await this.prisma.playerRun.create({
|
||||||
data: {
|
data: {
|
||||||
gameId: game.id,
|
gameId: game.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user