From 59ccb1547a5962737d6ab335a389c3b47a41f706 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 f3a5cf05735ad..72f77129d1dbe 100644 --- a/packages/modules/payment/src/services/payment-module.ts +++ b/packages/modules/payment/src/services/payment-module.ts @@ -1033,11 +1033,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 )