Fix zap receipt format

This commit is contained in:
austinkelsay 2024-11-07 16:37:58 -06:00
parent c019c2f825
commit 91e098f68d
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

View File

@ -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' });
}
}
}