diff --git a/imports/ui/Overview.jsx b/imports/ui/Overview.jsx index 950ad93..924bc92 100644 --- a/imports/ui/Overview.jsx +++ b/imports/ui/Overview.jsx @@ -21,11 +21,15 @@ export default function Overview() { if (activeDevice === null || activeDevice === undefined) { return []; } else { - return SensorDataCollection.find({device_id: activeDevice.deviceId}, { - timestamp: { $gt: moment(Date.now()).subtract(1, 'days').toDate() }, - sort: { timestamp: -1 }, - //limit: 1440 - }).fetch().reverse(); + return SensorDataCollection.find( + { + device_id: activeDevice.deviceId, + timestamp: { $gt: moment(Date.now()).subtract(2, 'days').toDate() } + }, + { + sort: { timestamp: -1 } + } + ).fetch().reverse(); } });