Skip to content
Snippets Groups Projects
Commit 9ea9bc14 authored by felmer's avatar felmer
Browse files

SP-39 calculate the new timestamp before reporting.

SVN: 25282
parent 2109b2c7
No related branches found
No related tags found
No related merge requests found
......@@ -425,6 +425,7 @@ public class MaterialReportingTask implements IMaintenanceTask
{
return;
}
Date newTimestamp = new Date(timeProvider.getTimeInMilliseconds());
operationLog.info("Start reporting added or changed materials to the report database.");
Map<String, List<Material>> materialsByType =
getRecentlyAddedOrChangedMaterials(contextOrNull.getSessionToken());
......@@ -438,7 +439,7 @@ public class MaterialReportingTask implements IMaintenanceTask
addOrUpdate(mappingInfo, materials);
}
}
writeTimestamp(new Date(timeProvider.getTimeInMilliseconds()));
writeTimestamp(newTimestamp);
operationLog.info("Reporting finished.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment