Patch for old records

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-aggregator-se-plugin@153087 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-09-14 08:58:56 +00:00
parent 5abbf6c4c3
commit c31b08b5b4
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ public class Aggregator {
int originalRecordsCounter = 0;
for (ViewRow row : viewResult) {
try {
String record = row.document().content().toString();
JsonObject content = row.document().content();
String record = content.toString();
record = record.replace("usageRecordType", "recordType");