diff --git a/src/controllers/userProfileController.js b/src/controllers/userProfileController.js index 6a23dd34b..3c086f541 100644 --- a/src/controllers/userProfileController.js +++ b/src/controllers/userProfileController.js @@ -722,6 +722,7 @@ const userProfileController = function (UserProfile, Project) { if (PROTECTED_EMAIL_ACCOUNT.includes(record.email)) { updatedDiff = record.modifiedPaths(); } + console.log(`jobTitle: ${record.jobTitle}`); record .save() .then((results) => { diff --git a/src/models/userProfile.js b/src/models/userProfile.js index 61e8e8f91..a71890acb 100644 --- a/src/models/userProfile.js +++ b/src/models/userProfile.js @@ -50,7 +50,7 @@ const userProfileSchema = new Schema({ index: true, }, phoneNumber: [{ type: String, phoneNumber: String }], - jobTitle: [{ type: String, jobTitle: String, required: true }], + jobTitle: [{ type: String, jobTitle: String }], bio: { type: String }, email: { type: String,