From 526b21bc668c453250ebce8dece9ba330bac0133 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 14 Feb 2026 15:46:01 -0800 Subject: custodial ark sends --- routes/users.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/users.ts') diff --git a/routes/users.ts b/routes/users.ts index cf958927..4435ba6f 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -2,7 +2,7 @@ import { createReadStream } from "node:fs"; import { unlink, writeFile } from "node:fs/promises"; import config from "$config"; import { requirePin } from "$lib/auth"; -import { db, g, ga, gf, s } from "$lib/db"; +import { db, g, ga, gf, s, scan } from "$lib/db"; import { err, l, warn } from "$lib/logging"; import { mail, templates } from "$lib/mail"; import { getNostrUser, getProfile, serverPubkey2 } from "$lib/nostr"; @@ -119,7 +119,7 @@ export default { const users = []; - for await (const k of db.scanIterator({ MATCH: "user:*" })) { + for await (const k of scan("user:*")) { const val = await g(k); if (!val || typeof val !== "object" || !val.id || !val.username) continue; const uid = val.id; -- cgit v1.2.3