fix: pay response should follow lndhub api

This commit is contained in:
kiwiidb
2022-03-23 17:20:04 +01:00
parent 346d24bb56
commit de472742bc
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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