diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 3775dcf..3d9d364 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -763,10 +763,12 @@ export class QuotationController extends Controller { }, } : undefined, - productServiceList: { - deleteMany: {}, - create: list, - }, + productServiceList: list + ? { + deleteMany: {}, + create: list, + } + : undefined, updatedByUserId: req.user.sub, }, });