diff options
| author | Adam Soltys <[email protected]> | 2024-08-26 22:18:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-26 22:53:11 -0700 |
| commit | 4efa82b36b74c633681ed831d6f567ae5ab08c3b (patch) | |
| tree | 5c79e477a733e82f44185488e9fdc30653aacff9 /lib/payments.ts | |
| parent | fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 (diff) | |
| download | coinos-server-4efa82b36b74c633681ed831d6f567ae5ab08c3b.tar.gz coinos-server-4efa82b36b74c633681ed831d6f567ae5ab08c3b.zip | |
fix some ts issues
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 6 |
1 files changed, 2 insertions, 4 deletions
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]; |
