diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 9af96752..bde73c1e 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -4896,7 +4896,7 @@ export class CommandController extends Controller { const meta = { profileId: item.profileId, commandId: item.commandId, - position: profile.position, + positionName: profile.position, positionType: profile?.posType?.posTypeName ?? null, positionLevel: profile?.posLevel?.posLevelName ?? null, positionExecutive: position?.posExecutive?.posExecutiveName ?? null, @@ -5112,7 +5112,7 @@ export class CommandController extends Controller { const profileSalary: ProfileSalary = Object.assign(new ProfileSalary(), { profileId: item.profileId, commandId: item.commandId, - position: profile.position, + positionName: profile.position, positionType: profile?.posType?.posTypeName ?? null, positionLevel: profile?.posLevel?.posLevelName ?? null, positionExecutive: position?.posExecutive?.posExecutiveName ?? null, diff --git a/src/controllers/ProfileAssistanceController.ts b/src/controllers/ProfileAssistanceController.ts index 8e1f2642..750638f8 100644 --- a/src/controllers/ProfileAssistanceController.ts +++ b/src/controllers/ProfileAssistanceController.ts @@ -51,9 +51,9 @@ export class ProfileAssistanceController extends Controller { @Get("{profileId}") public async detailProfileAssistance(@Path() profileId: string, @Request() req: RequestWithUser) { - let _workflow = await new permission().Workflow(req, profileId, "SYS_REGISTRY_OFFICER"); - if (_workflow == false) - await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId); + // let _workflow = await new permission().Workflow(req, profileId, "SYS_REGISTRY_OFFICER"); + // if (_workflow == false) + // await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId); const getProfileAssistanceId = await this.profileAssistanceRepo.find({ where: { profileId: profileId }, order: { createdAt: "ASC" },