Retrait de logs superflus
This commit is contained in:
parent
65576fc5b1
commit
0d96b78c33
@ -15,7 +15,6 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async validate(payload: { playerId: number }): Promise<Player> {
|
async validate(payload: { playerId: number }): Promise<Player> {
|
||||||
console.log(payload)
|
|
||||||
const player = await this.playersService.findOne(payload.playerId)
|
const player = await this.playersService.findOne(payload.playerId)
|
||||||
if (!player) {
|
if (!player) {
|
||||||
throw new UnauthorizedException()
|
throw new UnauthorizedException()
|
||||||
|
@ -19,7 +19,6 @@ export class ChallengeActionsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async findAll(queryPagination: QueryPaginationDto, filterChallengeActions: FilterChallengeActionsDto): Promise<[ChallengeAction[], number]> {
|
async findAll(queryPagination: QueryPaginationDto, filterChallengeActions: FilterChallengeActionsDto): Promise<[ChallengeAction[], number]> {
|
||||||
console.log(filterChallengeActions)
|
|
||||||
return [
|
return [
|
||||||
await this.prisma.challengeAction.findMany({
|
await this.prisma.challengeAction.findMany({
|
||||||
...paginate(queryPagination),
|
...paginate(queryPagination),
|
||||||
@ -36,7 +35,6 @@ export class ChallengeActionsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async update(id: number, updateChallengeActionDto: UpdateChallengeActionDto): Promise<ChallengeAction> {
|
async update(id: number, updateChallengeActionDto: UpdateChallengeActionDto): Promise<ChallengeAction> {
|
||||||
console.log(updateChallengeActionDto)
|
|
||||||
return await this.prisma.challengeAction.update({
|
return await this.prisma.challengeAction.update({
|
||||||
where: { id },
|
where: { id },
|
||||||
data: updateChallengeActionDto,
|
data: updateChallengeActionDto,
|
||||||
|
Loading…
Reference in New Issue
Block a user