aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/invoices.js')
-rw-r--r--lib/invoices.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index bab48515..86d48bd8 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -19,7 +19,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
if (tip > 5 * amount || tip < 0) fail("tip amount out of range");
if (!user) user = sender;
- let uid = await g(`user:${user.username}`);
+ let uid = await g(`user:${user.username.toLowerCase()}`);
user = await g(`user:${uid}`);
if (!user) fail("user not provided");