aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-03-22 15:53:35 +0000
committerAdam Soltys <[email protected]>2023-03-22 15:53:49 +0000
commitb8e7de704694bbcbdd58338704832e50c216dcdc (patch)
treeab715a468832d6bbdbbab9a659dd23a9b10d9f97 /lib
parent469c384e0930dd2b7c0f01c03cca95f86f05277d (diff)
downloadcoinos-server-b8e7de704694bbcbdd58338704832e50c216dcdc.tar.gz
coinos-server-b8e7de704694bbcbdd58338704832e50c216dcdc.zip
catch update errors
Diffstat (limited to 'lib')
-rw-r--r--lib/register.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/register.js b/lib/register.js
index ccf6d902..92df8615 100644
--- a/lib/register.js
+++ b/lib/register.js
@@ -54,9 +54,9 @@ export default async (user, ip, requireChallenge) => {
}
await s(`user:${id}`, user);
- await s(`user:${user.username.toLowerCase()}`, id);
+ await s(`user:${username}`, id);
await s(`user:${pubkey}`, id);
- l("new user", user.username);
+ l("new user", username);
return user;
};