diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 448bc6cb..bcb35079 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -6866,7 +6866,7 @@ export class OrganizationDotnetController extends Controller { } let _positions: any[] = []; let _educations: any[] = []; - if (body.report && ["LEAVE16"].includes(body.report.trim().toUpperCase())) { + if (body.report && ["LEAVE16", "LEAVE18"].includes(body.report.trim().toUpperCase())) { const CURRENT_DATE = await AppDataSource.query("SELECT CURRENT_DATE() as today"); let _currentDate = CURRENT_DATE[0].today; @@ -6901,6 +6901,7 @@ export class OrganizationDotnetController extends Controller { } const mapProfile = { + profileType: "EMPLOYEE", prefix: profile.prefix, firstName: profile.firstName, lastName: profile.lastName, @@ -7005,7 +7006,7 @@ export class OrganizationDotnetController extends Controller { let _positions: any[] = []; let _educations: any[] = []; - if (body.report && ["LEAVE16"].includes(body.report.trim().toUpperCase())) { + if (body.report && ["LEAVE16", "LEAVE18"].includes(body.report.trim().toUpperCase())) { const CURRENT_DATE = await AppDataSource.query("SELECT CURRENT_DATE() as today"); let _currentDate = CURRENT_DATE[0].today; @@ -7040,6 +7041,7 @@ export class OrganizationDotnetController extends Controller { } const mapProfile = { + profileType: "OFFICER", prefix: profile.prefix, firstName: profile.firstName, lastName: profile.lastName,