update commander-director-position

This commit is contained in:
kittapath 2025-02-26 15:45:45 +07:00
parent e327e28bf6
commit 2d1fc8b05f
3 changed files with 337 additions and 31 deletions

View file

@ -1739,7 +1739,8 @@ export class ProfileController extends Controller {
orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true },
},
});
return new HttpSuccess({ data: [], total: 0 });
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 });
}