Commit 38d7ee4a authored by Maxym Borodenko's avatar Maxym Borodenko

Don't rematch accession refs which already linked

parent 05111c05
......@@ -1382,7 +1382,7 @@ public class DatasetServiceImpl implements DatasetService {
dataset.setAccessionCount(accessionRefs.size());
dataset = datasetRepository.save(dataset);
batchRematchAccessionRefs(accessionRefs);
batchRematchAccessionRefs(accessionRefs.stream().filter(ar -> ar.getAccession() == null).collect(Collectors.toList()));
LOG.info("Done scheduling of relinking {} accession refs.", accessionRefs.size());
return lazyLoad(dataset);
......
Markdown is supported
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