แก้ฟิลด์ orgCode

This commit is contained in:
Bright 2024-01-29 14:55:13 +07:00
parent 5a7e5cfa0e
commit e82b4f6a85
5 changed files with 31 additions and 9 deletions

View file

@ -41,7 +41,7 @@ export class OrgRootController extends Controller {
try {
const orgRoot = await this.orgRootRepository.findOne({ where: { id } });
if (!orgRoot) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล โครงสร้างระดับ Root");
}
const getOrgRoot = {
"orgRootId" : orgRoot.id,