From 6a6b9ab5b5292b51e2570eadb73e2e436c4f1117 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 8 Nov 2024 16:45:21 -0800 Subject: set account id --- lib/invoices.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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; -- cgit v1.2.3