no message

This commit is contained in:
kittapath 2025-01-24 16:06:24 +07:00
parent c84a626911
commit f2b4ff93c6

View file

@ -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 });
}