diff --git a/WeathyServer/services/calendarService.js b/WeathyServer/services/calendarService.js index cfe5004..18e2b6d 100644 --- a/WeathyServer/services/calendarService.js +++ b/WeathyServer/services/calendarService.js @@ -9,7 +9,12 @@ module.exports = { include: [ { model: DailyWeather, - attributes: ['date', 'temperature_max', 'temperature_min'], + attributes: [ + 'date', + 'temperature_max', + 'temperature_min', + 'climate_id' + ], where: { date: { [Op.and]: { @@ -31,6 +36,7 @@ module.exports = { validCalendarOverviewList.push({ id: weathy.id, date: weathy.DailyWeather.date, + climateIconId: weathy.DailyWeather.climate_id, stampId: weathy.emoji_id, temperature: { maxTemp: weathy.DailyWeather.temperature_max,