Skip to content

Commit

Permalink
bug fix and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot committed Sep 10, 2024
1 parent 2b4c55a commit d96030c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
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 d96030c

Please sign in to comment.