Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suaniii committed Dec 22, 2024
1 parent eafa526 commit 7332df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/controllers/userProfileController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/models/userProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7332df8

Please sign in to comment.