fix: payment always trigger payment success

This commit is contained in:
Methapon Metanipat 2024-11-26 11:34:39 +07:00
parent 09b3097d02
commit 7908d2dab5

View file

@ -174,7 +174,7 @@ export class QuotationPayment extends Controller {
where: { id: quotation.id },
data: {
quotationStatus:
paymentSum._sum.amount || 0 >= quotation.finalPrice
(paymentSum._sum.amount || 0) >= quotation.finalPrice
? "PaymentSuccess"
: "PaymentInProcess",
requestData: await (async () => {