comment ห้ามลบเจ้าหน้าที่ลำดับที่ 1 #2220
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m3s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m3s
This commit is contained in:
parent
47f7f4d55e
commit
d6bb9be93d
1 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue