diff options
| author | Adam Soltys <[email protected]> | 2023-06-06 00:31:54 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-06-06 00:31:59 -0700 |
| commit | 4b5c6dde01fd99fc5962420be37fb850f1fdaeb5 (patch) | |
| tree | 2f031a817bd474377b9005750ab1ceba3ab29f56 /routes | |
| parent | 503dd491e537389d48fe2f1ee69e1b0d68330de8 (diff) | |
| download | coinos-server-4b5c6dde01fd99fc5962420be37fb850f1fdaeb5.tar.gz coinos-server-4b5c6dde01fd99fc5962420be37fb850f1fdaeb5.zip | |
pass webhook secret
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/invoices.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index f55d997f..fb501b27 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -14,9 +14,10 @@ export default { } let invoice = await g(`invoice:${hash}`); + delete invoice.secret; if (invoice) { - invoice.user = pick(await g(`user:${invoice.uid}`), whitelist); + invoice.user = pick(await g(`user:${invoice.uid}`), ['id', 'currency', 'username']); invoice.id = hash; } else if (config.classic) { invoice = await got(`${config.classic}/invoice/${pr}`).json(); @@ -36,6 +37,7 @@ export default { try { res.send(await generate({ invoice, user, sender })); } catch (e) { + console.log(e); bail(res, e.message); } }, |
