Profile data defaults to empty string to prevent value of undefined on account page
This commit is contained in:
@ -16,11 +16,11 @@ var userSchema = new mongoose.Schema({
|
|||||||
|
|
||||||
// Optional profile information
|
// Optional profile information
|
||||||
profile: {
|
profile: {
|
||||||
name: String,
|
name: { type: String, default: '' },
|
||||||
email: String,
|
email: { type: String, default: '' },
|
||||||
location: String,
|
location: { type: String, default: '' },
|
||||||
website: String,
|
website: { type: String, default: '' },
|
||||||
picture: String
|
picture: { type: String, default: '' }
|
||||||
},
|
},
|
||||||
|
|
||||||
// API access tokens
|
// API access tokens
|
||||||
|
Reference in New Issue
Block a user