comment ห้ามลบเจ้าหน้าที่ลำดับที่ 1 #2220
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m3s

This commit is contained in:
harid 2026-02-10 10:44:58 +07:00
parent 47f7f4d55e
commit d6bb9be93d

View file

@ -187,13 +187,13 @@ export class CommandOperatorController extends Controller {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบเจ้าหน้าที่ดำเนินการ");
}
// 2. ห้ามลบ orderNo = 1
if (operator.orderNo === 1) {
throw new HttpError(
HttpStatusCode.BAD_REQUEST,
"ไม่สามารถลบเจ้าหน้าที่ลำดับที่ 1 ได้"
);
}
// // 2. ห้ามลบ orderNo = 1
// if (operator.orderNo === 1) {
// throw new HttpError(
// HttpStatusCode.BAD_REQUEST,
// "ไม่สามารถลบเจ้าหน้าที่ลำดับที่ 1 ได้"
// );
// }
const removedOrderNo = operator.orderNo;