diff --git a/scheduler/src/modules/common/enum/application-status.enum.ts b/scheduler/src/modules/common/enum/application-status.enum.ts index dfe3d8e94..7b5f5ea27 100644 --- a/scheduler/src/modules/common/enum/application-status.enum.ts +++ b/scheduler/src/modules/common/enum/application-status.enum.ts @@ -5,6 +5,7 @@ export enum ApplicationStatus { IN_PROGRESS = 'IN_PROGRESS', IN_CART = 'IN_CART', REJECTED = 'REJECTED', + IN_QUEUE = 'IN_QUEUE', UNDER_REVIEW = 'UNDER_REVIEW', WAITING_APPROVAL = 'WAITING_APPROVAL', WAITING_PAYMENT = 'WAITING_PAYMENT', @@ -41,4 +42,5 @@ export const ALL_APPLICATION_STATUS: readonly ApplicationStatus[] = [ ApplicationStatus.IN_PROGRESS, ApplicationStatus.WAITING_PAYMENT, ApplicationStatus.PAYMENT_COMPLETE, + ApplicationStatus.IN_QUEUE, ]; diff --git a/vehicles/src/common/helper/policy-engine.helper.ts b/vehicles/src/common/helper/policy-engine.helper.ts index 1f0bb3874..fcf3fd3ba 100644 --- a/vehicles/src/common/helper/policy-engine.helper.ts +++ b/vehicles/src/common/helper/policy-engine.helper.ts @@ -1,13 +1,12 @@ -import { Permit } from "src/modules/permit-application-payment/permit/entities/permit.entity"; -import { PolicyApplication } from "../interface/policy-application.interface"; -import { PermitData } from "../interface/permit.template.interface"; +import { Permit } from 'src/modules/permit-application-payment/permit/entities/permit.entity'; +import { PolicyApplication } from '../interface/policy-application.interface'; +import { PermitData } from '../interface/permit.template.interface'; export const convertToPolicyApplication = ( - application: Permit - ): PolicyApplication => { - return { - permitType: application.permitType, - permitData: JSON.parse(application.permitData.permitData) as PermitData, - }; + application: Permit, +): PolicyApplication => { + return { + permitType: application.permitType, + permitData: JSON.parse(application.permitData.permitData) as PermitData, }; - \ No newline at end of file +}; diff --git a/vehicles/src/common/interface/policy-application.interface.ts b/vehicles/src/common/interface/policy-application.interface.ts index 854080a2c..2cdac9f31 100644 --- a/vehicles/src/common/interface/policy-application.interface.ts +++ b/vehicles/src/common/interface/policy-application.interface.ts @@ -1,6 +1,6 @@ -import { PermitData } from "./permit.template.interface"; +import { PermitData } from './permit.template.interface'; export interface PolicyApplication { - permitType: string; - permitData: PermitData; - } \ No newline at end of file + permitType: string; + permitData: PermitData; +} diff --git a/vehicles/src/modules/permit-application-payment/application/application.service.ts b/vehicles/src/modules/permit-application-payment/application/application.service.ts index 552abcaea..a21a8305e 100644 --- a/vehicles/src/modules/permit-application-payment/application/application.service.ts +++ b/vehicles/src/modules/permit-application-payment/application/application.service.ts @@ -1071,7 +1071,7 @@ export class ApplicationService { notificationDocument, false, ); - + await queryRunner.startTransaction(); await this.caseManagementService.createNotificationEvent({ currentUser, applicationId,