From 97dfddf81e4c5573a4a41d592eea5e246e035f98 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 eb740bfeb80da..5e1842e44c083 100644 --- a/packages/modules/payment/src/services/payment-module.ts +++ b/packages/modules/payment/src/services/payment-module.ts @@ -1058,11 +1058,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 )