diff options
| author | Adam Soltys <[email protected]> | 2023-02-21 08:25:35 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-21 08:25:35 -0800 |
| commit | b3cca3e37bc654d364736db66732a6aa38ccfd84 (patch) | |
| tree | 18e7254842cfa034aacaa44d0952138b0ed26c5f /routes/invoices.js | |
| parent | 6f855c089767d14ce387aa18a1eedbfb189d33f5 (diff) | |
| download | coinos-server-b3cca3e37bc654d364736db66732a6aa38ccfd84.tar.gz coinos-server-b3cca3e37bc654d364736db66732a6aa38ccfd84.zip | |
credit failed payments
Diffstat (limited to 'routes/invoices.js')
| -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 133da057..bbbae760 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -14,7 +14,7 @@ export default { if (invoice) { invoice.user = await g(`user:${invoice.uid}`); invoice.id = hash; - } else { + } else if(config.classic) { invoice = await got(`${config.classic}/invoice/${hash}`).json(); if (!invoice) fail("invoice not found"); invoice.id = invoice.uuid; |
