From d6b00d071b8c15e81a8b1c56fd74c7bbb37c95cf Mon Sep 17 00:00:00 2001
From: nicolastorres <nicolas@adornis.de>
Date: Wed, 11 Dec 2024 17:30:26 +0000
Subject: [PATCH] fix: request status on payment because it is needed in
 refundPayment

---
 modules/payments/db/payments.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/payments/db/payments.ts b/modules/payments/db/payments.ts
index 2a664518d5..215ab23d71 100644
--- a/modules/payments/db/payments.ts
+++ b/modules/payments/db/payments.ts
@@ -312,6 +312,7 @@ export class Payment extends MongoEntity {
         _id: 1,
         _class: 1,
         processorInfo: ProcessorInfo.allFields,
+        status: 1,
       });
       if (!payment) throw new Error('Payment not found');
       return runInServerContext(() => refundPayment({ paymentInstance: payment, reason: refundReason, refund }));
-- 
GitLab