Updated redis client. Soft deletes reset username.

This commit is contained in:
Mike Cao 2023-05-05 21:16:13 -07:00
parent 37b94e5b96
commit e92d958b24
6 changed files with 11 additions and 37 deletions

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;
}