From a2670d030e0f781857535d2977f8acd7fa2bc994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Arturo=20Cabral=20Mej=C3=ADa?= Date: Wed, 24 May 2023 21:13:00 -0400 Subject: [PATCH] fix: zebedee callback not marking invoice as paid (#318) --- src/controllers/callbacks/zebedee-callback-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/callbacks/zebedee-callback-controller.ts b/src/controllers/callbacks/zebedee-callback-controller.ts index 259ef0d7..7a4c24a8 100644 --- a/src/controllers/callbacks/zebedee-callback-controller.ts +++ b/src/controllers/callbacks/zebedee-callback-controller.ts @@ -75,7 +75,7 @@ export class ZebedeeCallbackController implements IController { try { await this.paymentsService.confirmInvoice({ id: invoice.id, - confirmedAt: updatedInvoice.confirmedAt, + confirmedAt: invoice.confirmedAt, amountPaid: invoice.amountRequested, }) await this.paymentsService.sendInvoiceUpdateNotification(updatedInvoice)