diff options
Diffstat (limited to 'routes/invoices.js')
| -rw-r--r-- | routes/invoices.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index 9f2e4c99..d1ef1a68 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -7,14 +7,13 @@ import config from "$config"; import ln from "$lib/ln"; export default { - async get({ params: { hash } }, res) { + async get({ params: { id } }, res) { let pr; - let invoice = await g(`invoice:${hash}`); + let invoice = await g(`invoice:${id}`); if (invoice) { delete invoice.secret; invoice.user = pick(await g(`user:${invoice.uid}`), ['id', 'profile', 'banner', 'currency', 'username']); - invoice.id = hash; } else if (config.classic) { invoice = await got(`${config.classic}/invoice/${pr}`).json(); if (invoice) { |
