Skip to content

Commit

Permalink
Revert "fix: linting issues"
Browse files Browse the repository at this point in the history
This reverts commit 23c98d8.
  • Loading branch information
pratapalakshmi committed Dec 15, 2024
1 parent 23c98d8 commit 9002e61
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions services/workflows-service/src/auth/local/local-auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ export class LocalAuthGuard extends AuthGuard('local') implements CanActivate {
async canActivate(context: ExecutionContext): Promise<boolean> {
const result = super.canActivate(context) as boolean;
const request = context.switchToHttp().getRequest();

if (result && request.user) {
const fullUrl = request.protocol + '://' + request.get('host') + request.originalUrl;
this.supabaseService.logSignIn(fullUrl);
}

super.logIn(request);

return Promise.resolve(result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class SupabaseService implements ISupabaseService {
const telemetryEnabled = this.configService.get('TELEMETRY_ENABLED');
const supabaseUrl = this.configService.get<string>('TELEMETRY_SUPABASE_URL');
const supabaseApiKey = this.configService.get<string>('TELEMETRY_SUPABASE_API_KEY');

if (telemetryEnabled) {
if (!supabaseUrl || !supabaseApiKey) {
throw new Error('Supabase URL or API key is missing in configuration');
Expand Down

0 comments on commit 9002e61

Please sign in to comment.