Skip to content

Commit

Permalink
fix: use alert_source field for data provider on an individual alert …
Browse files Browse the repository at this point in the history
…feature
  • Loading branch information
rudokemper committed Sep 11, 2024
1 parent 05c46b3 commit afca21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dataProcessing/transformData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const prepareAlertData = (
`${item.date_start_t1} to ${item.date_end_t1}`;
transformedItem["monthDetected"] = `${formattedMonth}-${item.year_detec}`;
transformedItem["YYYYMM"] = `${item.year_detec}${formattedMonth}`;
transformedItem["dataProvider"] = capitalizeFirstLetter(`${item._topic}`);
transformedItem["dataProvider"] = capitalizeFirstLetter(`${item.alert_source}`);
transformedItem["confidenceLevel"] = item.confidence;
transformedItem["alertType"] = item.alert_type?.replace(/_/g, " ") ?? "";
transformedItem["alertAreaHectares"] =
Expand Down

0 comments on commit afca21d

Please sign in to comment.