feat: update quatation status if add worker after complete

This commit is contained in:
Methapon2001 2024-12-27 08:49:26 +07:00
parent 077f0da74c
commit 5ca704f5ce

View file

@ -941,6 +941,7 @@ export class QuotationActionController extends Controller {
await tx.quotation.update({
where: { id: quotationId },
data: {
quotationStatus: QuotationStatus.PaymentSuccess, // NOTE: change back if already complete or canceled
worker: {
createMany: {
data: body