linting
This commit is contained in:
@@ -37,7 +37,7 @@ export class ClearSessionUseCase {
|
||||
});
|
||||
}
|
||||
return result;
|
||||
} catch (error: any) {
|
||||
} catch (error) {
|
||||
this.logger.error('Error clearing user session.', error, {
|
||||
useCase: 'ClearSessionUseCase'
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Result } from '../../../shared/result/Result';
|
||||
import type { Logger } from '@core/shared/application';
|
||||
import type { CheckoutServicePort } from '../ports/CheckoutServicePort';
|
||||
import type { CheckoutConfirmationPort } from '../ports/CheckoutConfirmationPort';
|
||||
import { CheckoutStateEnum } from '../../domain/value-objects/CheckoutState';
|
||||
|
||||
|
||||
interface SessionMetadata {
|
||||
sessionName: string;
|
||||
|
||||
@@ -31,7 +31,7 @@ export class InitiateLoginUseCase {
|
||||
this.logger.warn('Login flow initiation failed.', { error: result.error });
|
||||
}
|
||||
return result;
|
||||
} catch (error: any) {
|
||||
} catch (error) {
|
||||
this.logger.error('Error initiating login flow.', error);
|
||||
return Result.fail(error.message || 'Unknown error during login initiation.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user