Tirage de défi aléatoire

This commit is contained in:
2024-12-07 21:00:55 +01:00
parent 54e002e1f8
commit 97d61497bc
3 changed files with 54 additions and 4 deletions

View File

@ -25,7 +25,7 @@ export class ChallengeActionsService {
...paginate(queryPagination),
where: filterChallengeActions,
}),
await this.prisma.challenge.count(),
await this.prisma.challengeAction.count(),
]
}
@ -36,6 +36,7 @@ export class ChallengeActionsService {
}
async update(id: number, updateChallengeActionDto: UpdateChallengeActionDto): Promise<ChallengeAction> {
console.log(updateChallengeActionDto)
return await this.prisma.challengeAction.update({
where: { id },
data: updateChallengeActionDto,