chore: add logging for zap endpoint fetch failures
This commit is contained in:
parent
21ab8bc46c
commit
4e77975179
1 changed files with 2 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ class LightningService {
|
||||||
|
|
||||||
// Some clients have incorrectly filled in the positions for lud06 and lud16
|
// Some clients have incorrectly filled in the positions for lud06 and lud16
|
||||||
if (!profile.lightningAddress) {
|
if (!profile.lightningAddress) {
|
||||||
|
console.warn('Profile has no lightning address', profile)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -231,6 +232,7 @@ class LightningService {
|
||||||
const res = await fetch(lnurl)
|
const res = await fetch(lnurl)
|
||||||
const body = await res.json()
|
const body = await res.json()
|
||||||
|
|
||||||
|
console.log('Zap endpoint:', body)
|
||||||
if (body.allowsNostr !== false && body.callback) {
|
if (body.allowsNostr !== false && body.callback) {
|
||||||
return {
|
return {
|
||||||
callback: body.callback,
|
callback: body.callback,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue