From ceec6dd18169dc961f26c46b6fcc61ee3f76a477 Mon Sep 17 00:00:00 2001 From: kiwiidb Date: Mon, 8 Aug 2022 10:11:18 +0200 Subject: [PATCH] don't omit payment error when empty --- controllers/payinvoice.ctrl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/payinvoice.ctrl.go b/controllers/payinvoice.ctrl.go index c8a9a8e..bb3f8af 100644 --- a/controllers/payinvoice.ctrl.go +++ b/controllers/payinvoice.ctrl.go @@ -34,7 +34,7 @@ type PayInvoiceResponseBody struct { Amount int64 `json:"num_satoshis,omitempty"` Description string `json:"description,omitempty"` DescriptionHashStr string `json:"description_hash,omitempty"` - PaymentError string `json:"payment_error,omitempty"` + PaymentError string `json:"payment_error"` PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"` PaymentRoute *service.Route `json:"payment_route,omitempty"` }