Update waitforinvoice.go

This commit is contained in:
Believethehype
2023-04-09 22:51:55 +02:00
parent 67b8e7219d
commit 00adf797bb
+8 -5
View File
@@ -195,6 +195,9 @@ func WaitForInvoicePaid(payvalues LNURLPayValuesCustom, params *Params) {
go sendMessage(params.Npub, "Received Profile Zap from "+payvalues.Sender+" with amount: "+strconv.FormatInt(amount, 10)+" "+satsr+" ⚡️.")
}
}
log.Debug().Str("ZAPPED ⚡️", "Published zap on Nostr").Msg("Nostr")
close(quit)
return
}
} else if params.Npub != "" && params.NotifyNonZap {
@@ -209,15 +212,15 @@ func WaitForInvoicePaid(payvalues LNURLPayValuesCustom, params *Params) {
} else {
go sendMessage(params.Npub, "Received Non-Zap! Amount: "+strconv.FormatInt(amount, 10)+" "+satsr+" ⚡️.")
}
log.Debug().Str("ZAPPED ⚡️", "Published zap on Nostr").Msg("Nostr")
close(quit)
return
}
log.Debug().Str("ZAPPED ⚡️", "Published zap on Nostr").Msg("Nostr")
close(quit)
return
maxiterations--
}
maxiterations--
case <-quit:
ticker.Stop()
return