aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-17 03:00:21 +0000
committerAdam Soltys <[email protected]>2023-02-17 03:00:26 +0000
commit1cb593f2f0162ff6a66336313b4bd24306eda168 (patch)
treec4bbfd168db3eb51a50e3a7e9893bab69c057dd0
parent66d005cfd01b0e27f9c954da0a4d8e326c288e04 (diff)
downloadcoinos-server-1cb593f2f0162ff6a66336313b4bd24306eda168.tar.gz
coinos-server-1cb593f2f0162ff6a66336313b4bd24306eda168.zip
set pubkey and username on update
-rw-r--r--routes/users.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/users.js b/routes/users.js
index 91564aaa..34dd4ea9 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -179,6 +179,8 @@ export default {
}
user.haspin = !!user.pin;
+ await s(`user:${user.pubkey}`, user.id);
+ await s(`user:${user.username}`, user.id);
await s(`user:${user.id}`, user);
emit(user.id, "user", user);