From 5ca704f5ce9d2dccd4f28eea1edbf0d69724f3c9 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 27 Dec 2024 08:49:26 +0700 Subject: [PATCH] feat: update quatation status if add worker after complete --- src/controllers/05-quotation-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 6235b5c..440a7e0 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -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