mirror of
https://github.com/Unleash/unleash.git
synced 2026-10-14 00:10:28 +00:00
fix: only update name if not undefined
This commit is contained in:
@@ -281,7 +281,7 @@ class UserService {
|
||||
try {
|
||||
user = await this.store.getByQuery({ email });
|
||||
// Update user if autCreate is enabled.
|
||||
if (user.name !== name) {
|
||||
if (name && user.name !== name) {
|
||||
user = await this.store.update(user.id, { name, email });
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user