From d48ed6c3027d5d795473f654db1281a4ab495694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Arturo=20Cabral=20Mej=C3=ADa?= Date: Wed, 24 May 2023 21:09:50 -0400 Subject: [PATCH] fix: zebedee callback not marking invoice as paid --- 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)