fix word "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว"

This commit is contained in:
AdisakKanthawilang 2024-03-11 11:31:38 +07:00
parent 8ebd30a63d
commit 082ce90dcd
2 changed files with 3 additions and 3 deletions

View file

@ -202,7 +202,7 @@ export class OrgChild1Controller {
},
});
if (chkCode != null) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
}
child1.lastUpdateUserId = request.user.sub;
child1.lastUpdateFullName = request.user.name;

View file

@ -108,7 +108,7 @@ export class OrgRootController extends Controller {
where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode },
});
if (chkCode != null) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
}
const orgRevision = await this.orgRevisionRepository.findOne({
@ -190,7 +190,7 @@ export class OrgRootController extends Controller {
where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode },
});
if (chkCode?.id != id && chkCode != null) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
}
const orgRoot = await this.orgRootRepository.findOne({ where: { id } });