diff --git a/libs/api/domains/health-insurance/src/lib/accident-notification.service.ts b/libs/api/domains/health-insurance/src/lib/accident-notification.service.ts index bf112489a2cc..850d35039809 100644 --- a/libs/api/domains/health-insurance/src/lib/accident-notification.service.ts +++ b/libs/api/domains/health-insurance/src/lib/accident-notification.service.ts @@ -69,7 +69,7 @@ export class AccidentNotificationService { auth: Auth, ihiDocumentID: number, ): Promise { - this.logger.log('starting call to get accident', ihiDocumentID) + this.logger.debug('starting call to get accident', ihiDocumentID) const accidentStatus = await this.accidentsReportsApiWithAuth( auth, diff --git a/libs/application/template-api-modules/src/lib/modules/templates/accident-notification/accident-notification-v2.utils.ts b/libs/application/template-api-modules/src/lib/modules/templates/accident-notification/accident-notification-v2.utils.ts index f1c711319e56..6c5b3db62187 100644 --- a/libs/application/template-api-modules/src/lib/modules/templates/accident-notification/accident-notification-v2.utils.ts +++ b/libs/application/template-api-modules/src/lib/modules/templates/accident-notification/accident-notification-v2.utils.ts @@ -28,7 +28,6 @@ import { MinarsidurAPIModelsAccidentReportsInjuredDTO, MinarsidurAPIModelsAccidentReportsAccidentDTO, MinarsidurAPIModelsAccidentReportsEmployerDTO, - MinarsidurAPIModelsAccidentReportsClubDTO, MinarsidurAPIModelsAccidentReportsAccidentReportAttachmentDTO, MinarsidurAPIModelsAccidentReportsReporterDTOReportingForEnum, MinarsidurAPIModelsAccidentReportsAccidentReportAttachmentTypeEnum, @@ -43,7 +42,6 @@ export const applicationToAccidentReport = ( injured: getInjured(answers), accident: getAccident(answers), employer: getEmployer(answers), - club: getClub(answers), attachments: getAttachments(attachments), } } @@ -399,27 +397,6 @@ const getEmployer = ( } } -const getClub = ( - answers: AccidentNotificationAnswers, -): MinarsidurAPIModelsAccidentReportsClubDTO | undefined => { - const accidentType = getValueViaPath( - answers, - 'accidentType.radioButton', - ) - if (accidentType !== AccidentTypeEnum.SPORTS) return - - const club = getValueViaPath(answers, 'companyInfo') - const accidentLocation = getValueViaPath( - answers, - 'accidentLocation.answer', - ) - return { - nationalId: club?.nationalRegistrationId ?? '', - name: club?.name ?? '', - accidentType: accidentLocation ?? '', - } -} - const getAttachments = ( attachments: Array, ): Array => {