diff options
| author | Adam Soltys <[email protected]> | 2023-06-06 15:42:56 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-06-06 15:43:03 +0000 |
| commit | cbe05ca3b5457f20dcc2ca3b39aae881ea31b5f3 (patch) | |
| tree | c157aba0e3a6ce7859ee774f8166d02e049f37de /routes | |
| parent | 9174f32caa5313bc620eef37c535b04173364389 (diff) | |
| download | coinos-server-cbe05ca3b5457f20dcc2ca3b39aae881ea31b5f3.tar.gz coinos-server-cbe05ca3b5457f20dcc2ca3b39aae881ea31b5f3.zip | |
check for invoice
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/invoices.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index fb501b27..50034dc7 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -14,9 +14,9 @@ export default { } let invoice = await g(`invoice:${hash}`); - delete invoice.secret; if (invoice) { + delete invoice.secret; invoice.user = pick(await g(`user:${invoice.uid}`), ['id', 'currency', 'username']); invoice.id = hash; } else if (config.classic) { |
