mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-21 11:40:01 +00:00
fix for fix of bug 4292: device identifier for query now assembled correctly
Change-Id: Iebf95a7c7d5982299ff06773570779ba358c6480
This commit is contained in:
1 parent
1dd933e216
commit
1ff206ba39
1 file changed
+1
-3
+1
-3
@@ -325,9 +325,7 @@ public class MongoSensorFixStoreImpl implements MongoSensorFixStore {
|
||||
throws TransformationException, NoCorrespondingServiceRegisteredException {
|
||||
Map<DeviceIdentifier, FixT> result = new HashMap<>();
|
||||
for (final DeviceIdentifier deviceIdentifier : forDevices) {
|
||||
final DBObject deviceQuery = new BasicDBObject(
|
||||
FieldNames.DEVICE_ID.name(),
|
||||
deviceIdentifier.getStringRepresentation());
|
||||
final DBObject deviceQuery = getDeviceQuery(deviceIdentifier);
|
||||
final DBObject orderBy = new BasicDBObject(
|
||||
FieldNames.GPSFIX.name() + "." + FieldNames.TIME_AS_MILLIS.name(), -1);
|
||||
DBCursor lastFixForDeviceCursor = fixesCollection.find(deviceQuery).sort(orderBy).limit(1);
|
||||
|
||||
Reference in new issue
Block a user