lib/profile_events_queue_handler.ts
Showing 3 of 3 total issues
Function index
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function index( context: ContextWithBindings, event: IProfileCreatedEvent | IProfileUpdatedEvent): Promise<void> { const logLevel = isProduction ? "info" : "debug";
Function index
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
export async function index( context: ContextWithBindings, event: IProfileCreatedEvent | IProfileUpdatedEvent): Promise<void> { const logLevel = isProduction ? "info" : "debug";
- Read upRead up
Function sendWelcomeMessages
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
apiUrl: string, apiKey: string, messages: WelcomeMessages, fiscalCode: FiscalCode, profile: ExtendedProfile