ลบ caption "ไอดี"

This commit is contained in:
Bright 2024-02-28 13:35:08 +07:00
parent 382866d1cd
commit 74349d93c4
6 changed files with 20 additions and 20 deletions

View file

@ -66,7 +66,7 @@ export class PosLevelController extends Controller {
if (!chkPosTypeId) {
throw new HttpError(
HttpStatusCode.NOT_FOUND,
"ไม่พบข้อมูล posTypeId ไอดีนี้ : " + requestBody.posTypeId,
"ไม่พบข้อมูลประเภทตำแหน่งนี้"
);
}
@ -122,7 +122,7 @@ export class PosLevelController extends Controller {
) {
const posLevel = await this.posLevelRepository.findOne({ where: { id } });
if (!posLevel) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลระดับตำแหน่งนี้");
}
const chkPosTypeId = await this.posTypeRepository.findOne({
@ -133,7 +133,7 @@ export class PosLevelController extends Controller {
if (!chkPosTypeId) {
throw new HttpError(
HttpStatusCode.NOT_FOUND,
"ไม่พบข้อมูล posTypeId ไอดีนี้ : " + requestBody.posTypeId,
"ไม่พบข้อมูลระดับตำแหน่งนี้"
);
}
@ -180,7 +180,7 @@ export class PosLevelController extends Controller {
async deleteLevel(@Path() id: string) {
const delPosLevel = await this.posLevelRepository.findOne({ where: { id } });
if (!delPosLevel) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลระดับตำแหน่งนี้");
}
// try {
await this.posLevelRepository.remove(delPosLevel);
@ -217,7 +217,7 @@ export class PosLevelController extends Controller {
where: { id: id },
});
if (!getPosType) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลประเภทตำแหน่งนี้");
}
const mapPosLevel = {