mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-19 13:44:53 +01:00
Fix keysend response body type
This commit is contained in:
@@ -84,9 +84,10 @@ func (controller *KeySendController) KeySend(c echo.Context) error {
|
|||||||
"message": fmt.Sprintf("Payment failed. Does the receiver have enough inbound capacity? (%v)", err),
|
"message": fmt.Sprintf("Payment failed. Does the receiver have enough inbound capacity? (%v)", err),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
responseBody := &PayInvoiceResponseBody{}
|
responseBody := &KeySendResponseBody{}
|
||||||
responseBody.RHash = &lib.JavaScriptBuffer{Data: sendPaymentResponse.PaymentHash}
|
responseBody.RHash = &lib.JavaScriptBuffer{Data: sendPaymentResponse.PaymentHash}
|
||||||
responseBody.Amount = invoice.Amount
|
responseBody.Amount = invoice.Amount
|
||||||
|
responseBody.Destination = invoice.DestinationPubkeyHex
|
||||||
responseBody.Description = invoice.Memo
|
responseBody.Description = invoice.Memo
|
||||||
responseBody.DescriptionHashStr = invoice.DescriptionHash
|
responseBody.DescriptionHashStr = invoice.DescriptionHash
|
||||||
responseBody.PaymentError = sendPaymentResponse.PaymentError
|
responseBody.PaymentError = sendPaymentResponse.PaymentError
|
||||||
|
|||||||
Reference in New Issue
Block a user