diff options
| author | Adam Soltys <[email protected]> | 2026-02-14 15:46:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-14 15:46:01 -0800 |
| commit | 526b21bc668c453250ebce8dece9ba330bac0133 (patch) | |
| tree | 5e9c84a2cca6b4a5766c6cdc9f33f6c62f5776f3 /routes/users.ts | |
| parent | 843c343db567cd224dadf347ac16736bdc8b24a8 (diff) | |
| download | coinos-server-526b21bc668c453250ebce8dece9ba330bac0133.tar.gz coinos-server-526b21bc668c453250ebce8dece9ba330bac0133.zip | |
custodial ark sends
Diffstat (limited to 'routes/users.ts')
| -rw-r--r-- | routes/users.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
