From 29aea3f64f9f1682c49854d5e964db5b666419e4 Mon Sep 17 00:00:00 2001 From: shij Date: Mon, 14 Oct 2024 10:26:34 +0800 Subject: [PATCH] fix(payment): remove auto set completed_at of payment collection --- packages/modules/payment/src/services/payment-module.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/modules/payment/src/services/payment-module.ts b/packages/modules/payment/src/services/payment-module.ts index 188a540196f92..f0e98b3d8a4d0 100644 --- a/packages/modules/payment/src/services/payment-module.ts +++ b/packages/modules/payment/src/services/payment-module.ts @@ -1077,11 +1077,6 @@ export default class PaymentModuleService authorized_amount: authorizedAmount, captured_amount: capturedAmount, refunded_amount: refundedAmount, - completed_at: - paymentCollection.completed_at ?? - (MathBN.gte(netCapturedAmount, paymentCollection.raw_amount) - ? new Date() - : null), }, sharedContext )