Skip to content

Commit

Permalink
fix: Add IN_QUEUE status to scheduler. (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot authored Sep 10, 2024
1 parent 86034f8 commit 0887dfe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 2 additions & 0 deletions scheduler/src/modules/common/enum/application-status.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -41,4 +42,5 @@ export const ALL_APPLICATION_STATUS: readonly ApplicationStatus[] = [
ApplicationStatus.IN_PROGRESS,
ApplicationStatus.WAITING_PAYMENT,
ApplicationStatus.PAYMENT_COMPLETE,
ApplicationStatus.IN_QUEUE,
];
19 changes: 9 additions & 10 deletions vehicles/src/common/helper/policy-engine.helper.ts
Original file line number Diff line number Diff line change
@@ -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,
};
};
8 changes: 4 additions & 4 deletions vehicles/src/common/interface/policy-application.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PermitData } from "./permit.template.interface";
import { PermitData } from './permit.template.interface';

export interface PolicyApplication {
permitType: string;
permitData: PermitData;
}
permitType: string;
permitData: PermitData;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ export class ApplicationService {
notificationDocument,
false,
);

await queryRunner.startTransaction();
await this.caseManagementService.createNotificationEvent({
currentUser,
applicationId,
Expand Down

0 comments on commit 0887dfe

Please sign in to comment.