Fix EVENT_REVOKE operation is not being sent after geofence delete

This commit is contained in:
Pramila Niroshan 2024-05-16 08:05:43 +05:30
parent 03d6a145d8
commit 14580b5f5f
2 changed files with 6 additions and 0 deletions

View File

@ -626,6 +626,9 @@ public class GenericGeofenceDAOImpl extends AbstractGeofenceDAOImpl {
geofenceData.setGroupData(groupMap);
}
}
if (geofenceData != null) {
geofenceData.setGroupIds(new ArrayList<>(groupMap.keySet()));
}
return geofenceData;
}
} catch (SQLException e) {

View File

@ -157,6 +157,9 @@ public class SQLServerGeofenceDAOImpl extends AbstractGeofenceDAOImpl {
geofenceData.setFenceShape(rst.getString("FENCE_SHAPE"));
geofenceData.setGroupData(groupMap);
}
if (geofenceData != null) {
geofenceData.setGroupIds(new ArrayList<>(groupMap.keySet()));
}
return geofenceData;
}
}