Tirage de défi aléatoire
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user