From de472742bc0f0de5e818b240961a6dc35c0ddddc Mon Sep 17 00:00:00 2001 From: kiwiidb Date: Wed, 23 Mar 2022 17:20:04 +0100 Subject: [PATCH] fix: pay response should follow lndhub api --- controllers/keysend.ctrl.go | 2 +- controllers/payinvoice.ctrl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/keysend.ctrl.go b/controllers/keysend.ctrl.go index 1bbb8f9..711ba83 100644 --- a/controllers/keysend.ctrl.go +++ b/controllers/keysend.ctrl.go @@ -38,7 +38,7 @@ type KeySendResponseBody struct { DescriptionHashStr string `json:"description_hash,omitempty"` PaymentError string `json:"payment_error,omitempty"` PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"` - PaymentRoute *service.Route `json:"route,omitempty"` + PaymentRoute *service.Route `json:"payment_route,omitempty"` } // KeySend : Key send Controller diff --git a/controllers/payinvoice.ctrl.go b/controllers/payinvoice.ctrl.go index 1a658cd..75237f0 100644 --- a/controllers/payinvoice.ctrl.go +++ b/controllers/payinvoice.ctrl.go @@ -34,7 +34,7 @@ type PayInvoiceResponseBody struct { DescriptionHashStr string `json:"description_hash,omitempty"` PaymentError string `json:"payment_error,omitempty"` PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"` - PaymentRoute *service.Route `json:"route,omitempty"` + PaymentRoute *service.Route `json:"payment_route,omitempty"` } // PayInvoice : Pay invoice Controller