Commit cd64018d authored by Matija Obreza's avatar Matija Obreza
Browse files

Institute updated: Recount accessions after updating from WIEWS

parent 8f66d824
......@@ -90,6 +90,9 @@ public class InstituteUpdater {
@Autowired
private TaskExecutor taskExecutor;
@Autowired
private AccessionCounter accessionCounter;
private static final int BATCH_SIZE = 50;
/**
......@@ -226,6 +229,7 @@ public class InstituteUpdater {
if (toSave.size() > 0) {
LOG.info("Updating FaoInstitutes: {}", toSave.size());
instituteService.update(toSave);
toSave.forEach(accessionCounter::recountInstitute);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment