From da73e4e43fc4b548e46fa7d85629a7a53618c810 Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Wed, 28 Aug 2024 18:03:31 -0300 Subject: [PATCH] Fix build --- .../api/v1/payments/GetReissueNotaFiscalForPaymentRoute.kt | 2 +- .../routes/api/v1/payments/PostFinishPartialPaymentRoute.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/GetReissueNotaFiscalForPaymentRoute.kt b/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/GetReissueNotaFiscalForPaymentRoute.kt index d46f76e..1dda094 100644 --- a/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/GetReissueNotaFiscalForPaymentRoute.kt +++ b/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/GetReissueNotaFiscalForPaymentRoute.kt @@ -36,7 +36,7 @@ class GetReissueNotaFiscalForPaymentRoute(m: PerfectPayments) : RequiresAPIAuthe m.notaFiscais?.cancelNotaFiscais(internalPayment, "Criando nova Nota Fiscal") // And then we will reissue notas fiscais if the payment was approved - m.notaFiscais?.generateNotaFiscal(internalPayment) + m.notaFiscais?.generateNotaFiscal(internalPayment, null) call.respondEmptyJson(HttpStatusCode.OK) } diff --git a/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/PostFinishPartialPaymentRoute.kt b/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/PostFinishPartialPaymentRoute.kt index 648620d..edb234e 100644 --- a/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/PostFinishPartialPaymentRoute.kt +++ b/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/payments/PostFinishPartialPaymentRoute.kt @@ -58,7 +58,7 @@ class PostFinishPartialPaymentRoute(val m: PerfectPayments) : BaseRoute("/api/v1 PaymentQuery.sendPaymentNotification(m, internalPayment) // Generate nota fiscal - m.notaFiscais?.generateNotaFiscal(internalPayment) + m.notaFiscais?.generateNotaFiscal(internalPayment, null) // Success! call.respondJson(