diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/invoices.ts | 3 | ||||
| -rw-r--r-- | routes/users.ts | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/routes/invoices.ts b/routes/invoices.ts index f4034408..3dd60de0 100644 --- a/routes/invoices.ts +++ b/routes/invoices.ts @@ -35,9 +35,8 @@ export default { } = req; try { - res.send(await generate({ invoice, user, sender })); + res.send(await generate({ invoice, user, sender })); } catch (e) { - console.log(e); err("problem generating invoice", e.message); bail(res, e.message); } diff --git a/routes/users.ts b/routes/users.ts index eeb764ec..83303aa9 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -597,7 +597,7 @@ export default { let { user } = req; let accounts = []; - for (let id of await db.lRange(`${user.id}:accounts`, 0, 1)) { + for (let id of await db.lRange(`${user.id}:accounts`, 0, -1)) { let account = await g(`account:${id}`); account.balance = await g(`balance:${id}`); |
