From 4055f3c56875ca826f5ccc5def84ead57e815311 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 54b83c03161c6..c98448051aba8 100644 --- a/packages/modules/payment/src/services/payment-module.ts +++ b/packages/modules/payment/src/services/payment-module.ts @@ -1060,11 +1060,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 )