diff options
| author | Adam Soltys <[email protected]> | 2023-10-16 14:48:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-10-16 14:48:35 -0700 |
| commit | e1be17426cefb71e660828204752cca3ec147e7f (patch) | |
| tree | 173f77fc7014c16ca6b39fc58d7706093c959689 | |
| parent | 750bfa2943a3b2b080c4ca515fa071f15897cb30 (diff) | |
| download | coinos-server-e1be17426cefb71e660828204752cca3ec147e7f.tar.gz coinos-server-e1be17426cefb71e660828204752cca3ec147e7f.zip | |
delete old username after name change
| -rw-r--r-- | routes/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js index 2867e53a..649c9cc7 100644 --- a/routes/users.js +++ b/routes/users.js @@ -200,7 +200,7 @@ export default { if (user.username.toLowerCase() !== username.toLowerCase()) l("changing username", user.username, username); - await db.del(`user:${username}`); + await db.del(`user:${user.username}`); user.username = username; } |
