Fix missing custom expiry for phoenixd invoices (#2524)
This commit is contained in:
parent
d523218fc5
commit
cab3bb3ecd
@ -20,6 +20,7 @@ export async function createInvoice (
|
|||||||
const body = new URLSearchParams()
|
const body = new URLSearchParams()
|
||||||
body.append('description', description)
|
body.append('description', description)
|
||||||
body.append('amountSat', msatsToSats(msats))
|
body.append('amountSat', msatsToSats(msats))
|
||||||
|
body.append('expirySeconds', Math.ceil(expiry / 1000))
|
||||||
|
|
||||||
const hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '')
|
const hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '')
|
||||||
const agent = getAgent({ hostname })
|
const agent = getAgent({ hostname })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user