diff --git a/integration/crud-typeorm/auth.guard.ts b/integration/crud-typeorm/auth.guard.ts index 74ee1f36..6976508b 100644 --- a/integration/crud-typeorm/auth.guard.ts +++ b/integration/crud-typeorm/auth.guard.ts @@ -9,7 +9,11 @@ export class AuthGuard implements CanActivate { async canActivate(ctx: ExecutionContext): Promise { const req = ctx.switchToHttp().getRequest(); - req[USER_REQUEST_KEY] = await this.usersService.findOne(1); + req[USER_REQUEST_KEY] = await this.usersService.findOne({ + where: { + id: 1, + }, + }); return true; }