fix dependency major version changes

This commit is contained in:
Matt Walsh
2022-03-01 15:54:19 -06:00
parent d0509f14ae
commit 994b55530c
5 changed files with 19 additions and 16 deletions

View File

@@ -24,6 +24,7 @@ class CurrentWeather extends WeatherDisplay {
stationNum += 1;
try {
// station observations
// eslint-disable-next-line no-await-in-loop
observations = await utils.fetch.json(`${station.id}/observations`, {
cors: true,
data: {
@@ -38,8 +39,6 @@ class CurrentWeather extends WeatherDisplay {
observations = undefined;
throw new Error(`Unable to get observations: ${station.properties.stationIdentifier}, trying next station`);
}
// TODO: add retry for further stations if observations are unavailable
} catch (e) {
console.error(e);
}