mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +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: [
|
||||
["p", parsedZapRequest.tags.find(t => t[0] === "p")[1]],
|
||||
["bolt11", response.data.payment_request],
|
||||
["description", parsedZapRequest.content],
|
||||
["description", JSON.stringify(parsedZapRequest)],
|
||||
["preimage", preimage],
|
||||
["request", JSON.stringify(parsedZapRequest)]
|
||||
]
|
||||
};
|
||||
|
||||
@ -120,4 +119,4 @@ export default async function handler(req, res) {
|
||||
console.error('Error in polling endpoint:', error);
|
||||
res.status(500).json({ error: 'Internal server error' });
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user