mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Fix zap receipt format
This commit is contained in:
parent
c019c2f825
commit
91e098f68d
@ -83,9 +83,8 @@ export default async function handler(req, res) {
|
|||||||
tags: [
|
tags: [
|
||||||
["p", parsedZapRequest.tags.find(t => t[0] === "p")[1]],
|
["p", parsedZapRequest.tags.find(t => t[0] === "p")[1]],
|
||||||
["bolt11", response.data.payment_request],
|
["bolt11", response.data.payment_request],
|
||||||
["description", parsedZapRequest.content],
|
["description", JSON.stringify(parsedZapRequest)],
|
||||||
["preimage", preimage],
|
["preimage", preimage],
|
||||||
["request", JSON.stringify(parsedZapRequest)]
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -120,4 +119,4 @@ export default async function handler(req, res) {
|
|||||||
console.error('Error in polling endpoint:', error);
|
console.error('Error in polling endpoint:', error);
|
||||||
res.status(500).json({ error: 'Internal server error' });
|
res.status(500).json({ error: 'Internal server error' });
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user