Fix missing custom expiry for phoenixd invoices (#2524)

This commit is contained in:
ekzyis 2025-09-14 00:08:07 +02:00 committed by GitHub
parent d523218fc5
commit cab3bb3ecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ export async function createInvoice (
const body = new URLSearchParams()
body.append('description', description)
body.append('amountSat', msatsToSats(msats))
body.append('expirySeconds', Math.ceil(expiry / 1000))
const hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '')
const agent = getAgent({ hostname })