From 384c4778ca5421c091a7d282b90b00965f3596cd Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Feb 2026 13:05:01 -0800 Subject: zmq logic --- routes/users.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'routes/users.ts') diff --git a/routes/users.ts b/routes/users.ts index a63ac4ae..a7188552 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -11,7 +11,6 @@ import { emit } from "$lib/sockets"; import upload from "$lib/upload"; import { bail, fail, fields, getUser, pick } from "$lib/utils"; import whitelist from "$lib/whitelist"; -import rpc from "@coinos/rpc"; import { bech32m } from "@scure/base"; import { $ } from "bun"; @@ -22,6 +21,7 @@ import { authenticator } from "otplib"; import { v4 } from "uuid"; import { PaymentType } from "$lib/types"; +import { reconcile } from "$lib/payments"; import type { ProfilePointer } from "nostr-tools/nip19"; const { host } = new URL(process.env.URL); @@ -879,7 +879,9 @@ export default { seed, type, uid, - descriptors: [], + pubkey, + fingerprint, + nextIndex: 0, arkAddress, accountIndex, }; @@ -938,6 +940,8 @@ export default { .lPush(`${user.id}:accounts`, id) .exec(); + reconcile(account, true); + res.send(account); } catch (e) { bail(res, e.message); -- cgit v1.2.3