diff --git a/services/workflows-service/src/auth/local/local-auth.guard.ts b/services/workflows-service/src/auth/local/local-auth.guard.ts index c3da799350..6992945a57 100644 --- a/services/workflows-service/src/auth/local/local-auth.guard.ts +++ b/services/workflows-service/src/auth/local/local-auth.guard.ts @@ -8,7 +8,7 @@ export class LocalAuthGuard extends AuthGuard('local') implements CanActivate { super(); } - canActivate(context: ExecutionContext): Promise { + async canActivate(context: ExecutionContext): Promise { const result = super.canActivate(context) as boolean; const request = context.switchToHttp().getRequest(); if (result && request.user) { @@ -19,3 +19,4 @@ export class LocalAuthGuard extends AuthGuard('local') implements CanActivate { return Promise.resolve(result); } } +