This commit is contained in:
Peter Rounce 2023-02-19 08:53:15 +00:00
parent bba519888b
commit 976f5b9929
3 changed files with 4 additions and 6 deletions

View file

@ -48,8 +48,8 @@ func lndhub_payment(w http.ResponseWriter, p *db.Payment) {
defer res.Body.Close()
b, err2 := io.ReadAll(res.Body)
if err2 != nil {
b, err := io.ReadAll(res.Body)
if err != nil {
log.WithFields(log.Fields{"card_payment_id": p.Card_payment_id}).Warn(err)
resp_err.Write(w)
return
@ -57,8 +57,6 @@ func lndhub_payment(w http.ResponseWriter, p *db.Payment) {
log.Info(string(b))
// fmt.Println(string(b))
//lndhub.payinvoice API call
}