diff --git a/lib/tools/mqtt_core.dart b/lib/tools/mqtt_core.dart index 2463a64..9ff6a83 100644 --- a/lib/tools/mqtt_core.dart +++ b/lib/tools/mqtt_core.dart @@ -315,7 +315,7 @@ class MqttCore { void _messageUploadDeviceLogReceived(payloadData) async { var deviceLogRequest = DeviceLogRequest.fromJson(payloadData); - var logEintries = await MyApp.isarInstance.logEntrys.filter().timeGreaterThan(deviceLogRequest.startDateTime).findAll(); + var logEintries = await MyApp.isarInstance.logEntrys.filter().timeGreaterThan(deviceLogRequest.startDateTime).timeLessThan(deviceLogRequest.endDateTime).findAll(); var deviceLog = DeviceLogResponse(); deviceLog.entries = logEintries;