aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-08 16:45:21 -0800
committerAdam Soltys <[email protected]>2024-11-08 16:45:21 -0800
commit6a6b9ab5b5292b51e2570eadb73e2e436c4f1117 (patch)
tree42db28e2881d6de75f2c78e5ec6aacad3e01a9b8 /lib
parent74666c45287cd59c3726bd802935e65421776f89 (diff)
downloadcoinos-server-6a6b9ab5b5292b51e2570eadb73e2e436c4f1117.tar.gz
coinos-server-6a6b9ab5b5292b51e2570eadb73e2e436c4f1117.zip
set account id
Diffstat (limited to 'lib')
-rw-r--r--lib/invoices.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts
index d79ead69..0a94334c 100644
--- a/lib/invoices.ts
+++ b/lib/invoices.ts
@@ -39,6 +39,7 @@ export const generate = async ({ invoice, user }) => {
let account = await g(`account:${aid}`);
if (!account) account = await g(`account:${user.id}`);
if (!account) fail("account not found");
+ aid = account.id;
const rates = await g("rates");
if (!currency) currency = user.currency;