aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-13 23:47:26 -0800
committerAdam Soltys <[email protected]>2026-02-13 23:47:26 -0800
commitddbe2e8afa46f3c8906b0abe0683998f85ab2e68 (patch)
tree4f364934ee893494a5e08572c867c247f34b0374 /routes/users.ts
parentc7c6ee7ba59467b8ddcfe8196b4f7586a864f3c0 (diff)
downloadcoinos-server-ddbe2e8afa46f3c8906b0abe0683998f85ab2e68.tar.gz
coinos-server-ddbe2e8afa46f3c8906b0abe0683998f85ab2e68.zip
ark payment notifications
Diffstat (limited to 'routes/users.ts')
-rw-r--r--routes/users.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/users.ts b/routes/users.ts
index d1df6e5d..cf958927 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -897,11 +897,11 @@ export default {
// ARK accounts don't need Bitcoin Core wallet setup
if (type === "ark") {
- await db
- .multi()
+ const m = db.multi()
.set(`account:${id}`, JSON.stringify(account))
- .lPush(`${user.id}:accounts`, id)
- .exec();
+ .lPush(`${user.id}:accounts`, id);
+ if (arkAddress) m.set(`arkaddr:${arkAddress}`, JSON.stringify({ aid: id, uid }));
+ await m.exec();
res.send(account);
return;