Paiement automatique d'une course
This commit is contained in:
@ -27,7 +27,7 @@ export class GameService {
|
||||
})
|
||||
}
|
||||
}
|
||||
const runnerId = alreadyStarted ? game.currentRunnerId : players[Math.trunc(players.length * Math.random())].id
|
||||
const runnerId = alreadyStarted ? game.currentRunnerId : players[Math.floor(players.length * Math.random())].id
|
||||
return await this.prisma.game.update({
|
||||
where: { id: 1 },
|
||||
data: {
|
||||
|
Reference in New Issue
Block a user