Преглед изворни кода

Add institution name field to the database (#15862)

GitOrigin-RevId: 5527692bb476a8504e3540e827d62e41d8813d60
Rebeka Dekany пре 2 година
родитељ
комит
441cf1bb5b

+ 2 - 0
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,

+ 1 - 0
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 },

+ 1 - 1
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<React.SetStateAction<string>>
+  setValue: (value: string) => void
   inputRef?: React.ForwardedRef<HTMLInputElement>
   showLabel?: boolean
   showSuggestedText?: boolean