diff --git a/src/main/java/org/gcube/dataharvest/harvester/MethodInvocationHarvester.java b/src/main/java/org/gcube/dataharvest/harvester/MethodInvocationHarvester.java index b399309..b7a5044 100644 --- a/src/main/java/org/gcube/dataharvest/harvester/MethodInvocationHarvester.java +++ b/src/main/java/org/gcube/dataharvest/harvester/MethodInvocationHarvester.java @@ -58,6 +58,7 @@ public class MethodInvocationHarvester extends BasicHarvester { SortedMap> result = null; List filters = new ArrayList<>(); + filters.add(new Filter(ServiceUsageRecord.SERVICE_NAME, DATAMINER_SERVICE_NAME)); Date newMethodInvocationHarvesterStartDate = DateUtils.getStartCalendar(2017, Calendar.DECEMBER, 31).getTime(); @@ -67,7 +68,6 @@ public class MethodInvocationHarvester extends BasicHarvester { AggregatedJobUsageRecord.class, temporalConstraint, filters, contexts, true); } else { // Before 31/12/2017 accounting Method Invocation using ServiceUsageRecord - filters.add(new Filter(ServiceUsageRecord.SERVICE_NAME, DATAMINER_SERVICE_NAME)); result = accountingPersistenceQuery.getContextTimeSeries( AggregatedServiceUsageRecord.class, temporalConstraint, filters, contexts, true); }