From 441cf1bb5bcebe124dc6b7f7b7b14e16fba2bdd4 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:44:03 +0100 Subject: [PATCH] Add institution name field to the database (#15862) GitOrigin-RevId: 5527692bb476a8504e3540e827d62e41d8813d60 --- .../OnboardingDataCollection/OnboardingDataCollectionManager.js | 2 ++ services/web/app/src/models/OnboardingDataCollection.js | 1 + .../js/features/settings/components/emails/downshift-input.tsx | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js b/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js index c9bcb6d278..9eb9321765 100644 --- a/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js +++ b/services/web/app/src/Features/OnboardingDataCollection/OnboardingDataCollectionManager.js @@ -20,6 +20,7 @@ async function upsertOnboardingDataCollection({ companyDivisionDepartment, companyJobTitle, governmentJobTitle, + institutionName, otherJobTitle, nonprofitDivisionDepartment, nonprofitJobTitle, @@ -37,6 +38,7 @@ async function upsertOnboardingDataCollection({ companyDivisionDepartment, companyJobTitle, governmentJobTitle, + institutionName, otherJobTitle, nonprofitDivisionDepartment, nonprofitJobTitle, diff --git a/services/web/app/src/models/OnboardingDataCollection.js b/services/web/app/src/models/OnboardingDataCollection.js index 3f9484b0e2..e0625f71fc 100644 --- a/services/web/app/src/models/OnboardingDataCollection.js +++ b/services/web/app/src/models/OnboardingDataCollection.js @@ -10,6 +10,7 @@ const OnboardingDataCollectionSchema = new Schema( companyDivisionDepartment: { type: String, default: null }, companyJobTitle: { type: String, default: null }, governmentJobTitle: { type: String, default: null }, + institutionName: { type: String, default: null }, otherJobTitle: { type: String, default: null }, nonprofitDivisionDepartment: { type: String, default: null }, nonprofitJobTitle: { type: String, default: null }, diff --git a/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx b/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx index 6cf4693406..62c6cd42c2 100644 --- a/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx +++ b/services/web/frontend/js/features/settings/components/emails/downshift-input.tsx @@ -7,7 +7,7 @@ type DownshiftInputProps = { itemsTitle?: string inputValue: string label: string - setValue: React.Dispatch> + setValue: (value: string) => void inputRef?: React.ForwardedRef showLabel?: boolean showSuggestedText?: boolean