From 4efa82b36b74c633681ed831d6f567ae5ab08c3b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 26 Aug 2024 22:18:56 -0700 Subject: fix some ts issues --- lib/payments.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/payments.ts') diff --git a/lib/payments.ts b/lib/payments.ts index 92e17839..797b3a97 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -3,7 +3,7 @@ import config from "$config"; import { emit } from "$lib/sockets"; import { v4 } from "uuid"; import { notify } from "$lib/notifications"; -import { db, g, s, t } from "$lib/db"; +import { db, g, s } from "$lib/db"; import { l, err, warn } from "$lib/logging"; import { f, @@ -11,9 +11,7 @@ import { fail, fiat, getInvoice, - getUser, sleep, - wait, SATS, sats, formatReceipt, @@ -54,7 +52,7 @@ export let debit = async ({ // if (!user.unlimited && amount > 1000000) // fail(`⚡️${amount} exceeds max withdrawal of ⚡️1,000,000`); let ref; - let { id: uid, currency, username } = user; + let { id: uid, currency } = user; let rates = await g('rates'); if (!rate) rate = rates[currency]; -- cgit v1.2.3