From 6de76d3a76f8b91b0ffa88bf175bb821234e84bd Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 13 Feb 2026 12:31:45 -0800 Subject: send pending balance --- routes/users.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/users.ts b/routes/users.ts index a665de73..89920748 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -23,7 +23,7 @@ import { authenticator } from "otplib"; import { v4 } from "uuid"; import { PaymentType } from "$lib/types"; -import { createBalanceAccount, getBalance, getCredit } from "$lib/tb"; +import { createBalanceAccount, getBalance, getCredit, getPending } from "$lib/tb"; import { importAccountHistory } from "$lib/payments"; import type { ProfilePointer } from "nostr-tools/nip19"; @@ -839,6 +839,7 @@ export default { await importAccountHistory(account); } account.balance = await getBalance(id); + account.pending = await getPending(id); accounts.push(account); } -- cgit v1.2.3