Skip to content

Commit

Permalink
update variable name for forecast flag in station-csv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiwycherley committed Aug 7, 2024
1 parent 47cf073 commit b3d50c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/station-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {

const stationName = station.external_name.replace(/[^a-zA-Z0-9]+/g, '-')

const [rawTelemetry, forecast] = await Promise.all([
const [rawTelemetry, forecastFlag] = await Promise.all([
floodService.getStationTelemetry(id, direction),
floodService.getForecastFlag(id, direction)
])
Expand All @@ -42,7 +42,7 @@ module.exports = {
}))

// Forecast station
const includeForecast = forecast.display_time_series
const includeForecast = forecastFlag.display_time_series
const truncateDateHoursToAdd = 36

if (includeForecast && telemetry.length) {
Expand Down

0 comments on commit b3d50c0

Please sign in to comment.