fix: product was delete on not send list product

This commit is contained in:
Methapon Metanipat 2024-10-29 14:21:26 +07:00
parent 6fc3c69559
commit 6dcd01ffe4

View file

@ -763,10 +763,12 @@ export class QuotationController extends Controller {
},
}
: undefined,
productServiceList: {
deleteMany: {},
create: list,
},
productServiceList: list
? {
deleteMany: {},
create: list,
}
: undefined,
updatedByUserId: req.user.sub,
},
});