Fixed issue with social accounts with empty name
This commit is contained in:
1 parent
958395335c
commit
dbf8a767a4
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ userSchema.statics.processProfile = (profile) => {
|
||||
email: primaryEmail,
|
||||
provider: profile.provider,
|
||||
providerId: profile.id,
|
||||
name: profile.displayName
|
||||
name: profile.displayName || _.split(primaryEmail, '@')[0]
|
||||
}, {
|
||||
new: true,
|
||||
upsert: true
|
||||
|
||||
Reference in new issue
Block a user