aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-04 13:05:01 -0800
committerAdam Soltys <[email protected]>2026-02-06 08:59:26 -0800
commit384c4778ca5421c091a7d282b90b00965f3596cd (patch)
tree0803cb8872128007e5487f94a9b9e7a00cbffba6 /routes/users.ts
parent5e3bfba5eb3d54cc03551f98624a2e92dca5825f (diff)
downloadcoinos-server-384c4778ca5421c091a7d282b90b00965f3596cd.tar.gz
coinos-server-384c4778ca5421c091a7d282b90b00965f3596cd.zip
zmq logic
Diffstat (limited to 'routes/users.ts')
-rw-r--r--routes/users.ts8
1 files changed, 6 insertions, 2 deletions
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);