From 61d246e1bca5566c93486312818e02b8a8aa70b3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 25 Sep 2024 09:44:26 -0700 Subject: push to account invoices --- lib/invoices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/invoices.ts b/lib/invoices.ts index d7f09de5..a17288ca 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -126,7 +126,7 @@ export let generate = async ({ invoice, user }) => { await s(`invoice:${hash}`, id); await s(`invoice:${id}`, invoice); - await db.lPush(`${user.id}:invoices`, id); + await db.lPush(`${aid}:invoices`, id); if (request_id) { let request = await g(`request:${request_id}`); -- cgit v1.2.3