diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 86e16483..493ea4fa 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -1686,7 +1686,7 @@ export class ProfileController extends Controller { orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true }, }, }); - if (!posMaster) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลโครงสร้างปลัด"); + return new HttpSuccess({ data: [], total: 0 }); } else if (posMaster?.current_holder?.posLevel?.posLevelAuthority ?? null == "GOVERNOR") { return new HttpSuccess({ data: [], total: 0 }); }