fix: use more than only

This commit is contained in:
Methapon2001 2024-12-17 13:16:15 +07:00
parent dc32f77a2c
commit c913b92cd9

View file

@ -869,7 +869,7 @@ export class QuotationActionController extends Controller {
if (!quotation) throw relationError("Quotation");
if (ids.employee.length !== employee.length) throw relationError("Worker");
if (ids.productService.length !== productService.length) throw relationError("Product");
if (quotation._count.worker + body.length >= (quotation.workerMax || 0)) {
if (quotation._count.worker + body.length > (quotation.workerMax || 0)) {
if (body.length === 0) return;
throw new HttpError(
HttpStatus.PRECONDITION_FAILED,