From f2b4ff93c62e9dbbcede0924ad5e56d928fd7e67 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 24 Jan 2025 16:06:24 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); }