Updated redis client. Soft deletes reset username.

This commit is contained in:
Mike Cao committed 2023-05-05 21:16:13 -07:00
1 parent 37b94e5b96
commit e92d958b24
6 files changed
+11 -37

No files matched your search

+1 -1
View File
@@ -51,11 +51,11 @@ export default async (
data.password = hashPassword(password);
}
// Only admin can change these fields
if (role && isAdmin) {
data.role = role;
}
// Only admin can change these fields
if (username && isAdmin) {
data.username = username;
}