no message

This commit is contained in:
Bright 2024-11-13 17:04:28 +07:00
parent 04928bb83a
commit eab9b79aa7
2 changed files with 12 additions and 3 deletions

View file

@ -876,9 +876,9 @@ export class CommandController extends Controller {
}
/**
* API
* API
*
* @summary API
* @summary API
*
* @param {string} id Id
*/

View file

@ -5684,7 +5684,16 @@ export class ProfileController extends Controller {
//await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_OFFICER", id); //ไม่แน่ใจOFFปิดไว้ก่อน
const profile = await this.profileEmpRepo.findOne({
where: { id: id },
relations: ["posLevel", "posType", "current_holders", "current_holders.orgRoot"],
relations: [
"posLevel",
"posType",
"current_holders",
"current_holders.orgRoot",
"current_holders.orgChild1",
"current_holders.orgChild2",
"current_holders.orgChild3",
"current_holders.orgChild4",
],
});
if (!profile) {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");