Skip to content

Commit

Permalink
Add missing location PID field to data load
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle1morel committed Feb 26, 2024
1 parent 67fbfbe commit 1ed1881
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/controllers/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const controller = {
financiallySupported: Object.values(financiallySupportedValues).includes(true),
...financiallySupportedValues,
intakeStatus: toTitleCase(data.form.status),
locationPIDs: data.parcelID,
latitude: data.latitude,
longitude: data.longitude,
naturalDisaster: data.naturalDisasterInd,
Expand Down
1 change: 1 addition & 0 deletions app/src/services/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const service = {
financially_supported_non_profit: x.financiallySupportedNonProfit,
financially_supported_housing_coop: x.financiallySupportedHousingCoop,
intake_status: x.intakeStatus,
location_pids: x.locationPIDs,
latitude: parseFloat(x.latitude as unknown as string),
longitude: parseFloat(x.longitude as unknown as string),
natural_disaster: x.naturalDisaster,
Expand Down
1 change: 1 addition & 0 deletions app/src/types/ChefsSubmissionExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type ChefsSubmissionExport = {
isIndigenousHousingProviderSupported: boolean;
isNonProfitSupported: boolean;
isHousingCooperativeSupported: boolean;
parcelID: string;
latitude: number;
longitude: number;
naturalDisasterInd: boolean;
Expand Down

0 comments on commit 1ed1881

Please sign in to comment.