Fix #undefined in downzap invoice description (#1597)
This commit is contained in:
parent
79ada2ab58
commit
5631d6acf6
|
@ -78,6 +78,6 @@ export async function onFail ({ invoice }, { tx }) {
|
||||||
await tx.itemAct.updateMany({ where: { invoiceId: invoice.id }, data: { invoiceActionState: 'FAILED' } })
|
await tx.itemAct.updateMany({ where: { invoiceId: invoice.id }, data: { invoiceActionState: 'FAILED' } })
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function describe ({ itemId, sats }, { cost, actionId }) {
|
export async function describe ({ id: itemId, sats }, { cost, actionId }) {
|
||||||
return `SN: downzap of ${sats ?? msatsToSats(cost)} sats to #${itemId ?? actionId}`
|
return `SN: downzap of ${sats ?? msatsToSats(cost)} sats to #${itemId ?? actionId}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue