diff --git a/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js b/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js index 32e09b283b..c9bcb6d278 100644 --- a/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js +++ b/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js @@ -17,6 +17,14 @@ async function upsertOnboardingDataCollection({ lastName, usedLatex, primaryOccupation, + companyDivisionDepartment, + companyJobTitle, + governmentJobTitle, + otherJobTitle, + nonprofitDivisionDepartment, + nonprofitJobTitle, + role, + subjectArea, updatedAt, }) { const odc = await OnboardingDataCollection.findOneAndUpdate( @@ -26,6 +34,14 @@ async function upsertOnboardingDataCollection({ lastName, usedLatex, primaryOccupation, + companyDivisionDepartment, + companyJobTitle, + governmentJobTitle, + otherJobTitle, + nonprofitDivisionDepartment, + nonprofitJobTitle, + role, + subjectArea, updatedAt, }, { upsert: true } diff --git a/services/web/app/src/models/OnboardingDataCollection.js b/services/web/app/src/models/OnboardingDataCollection.js index e54b8254eb..3f9484b0e2 100644 --- a/services/web/app/src/models/OnboardingDataCollection.js +++ b/services/web/app/src/models/OnboardingDataCollection.js @@ -7,6 +7,14 @@ const OnboardingDataCollectionSchema = new Schema( lastName: { type: String, default: null }, primaryOccupation: { type: String, default: null }, usedLatex: { type: String, default: null }, + companyDivisionDepartment: { type: String, default: null }, + companyJobTitle: { type: String, default: null }, + governmentJobTitle: { type: String, default: null }, + otherJobTitle: { type: String, default: null }, + nonprofitDivisionDepartment: { type: String, default: null }, + nonprofitJobTitle: { type: String, default: null }, + role: { type: String, default: null }, + subjectArea: { type: String, default: null }, updatedAt: { type: Date, default: Date.now }, }, {