From c8ec6fa5d3be57d570cc67cc10692b631df0f921 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 5 Feb 2026 23:05:21 -0800 Subject: track account index --- routes/users.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/users.ts b/routes/users.ts index 32ecebc4..f7912f4a 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -309,6 +309,7 @@ export default { const attributes = [ "about", + "accountIndex", "arkAddress", "autowithdraw", "banner", @@ -833,7 +834,7 @@ export default { for (const id of await db.lRange(`${user.id}:accounts`, 0, -1)) { const account = await g(`account:${id}`); if (account) { - if (account.seed && account.pubkey && !account.importedAt) { + if ((account.seed || user.seed) && account.pubkey && !account.importedAt) { await importAccountHistory(account); } account.balance = await getBalance(id); -- cgit v1.2.3