Merge pull request #634 from sharelatex/ta-remove-emails-default

Remove Emails Attribute on User Model
This commit is contained in:
Timothée Alby
2018-06-06 11:37:17 +02:00
committed by GitHub
@@ -8,10 +8,6 @@ ObjectId = Schema.ObjectId
UserSchema = new Schema
email : {type : String, default : ''}
emails: [{
email: { type : String, default : '' },
createdAt: { type : Date, default: () -> new Date() }
}],
first_name : {type : String, default : ''}
last_name : {type : String, default : ''}
role : {type : String, default : ''}