From b00fee005fc69f79d300fa71a3619d97f4571c23 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 12 Sep 2024 15:34:20 -0700 Subject: default account --- routes/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/users.ts') 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}`); -- cgit v1.2.3