code review points
This commit is contained in:
parent
52657b60bf
commit
c043afe1ee
|
@ -4,5 +4,5 @@ issue: 6478
|
|||
jira: SMILE-8955
|
||||
title: "Transactions with multiple saved search urls will have the saved search urls
|
||||
deleted in a batch, instead of 1 at a time.
|
||||
This is a minor performance update
|
||||
This is a minor performance update.
|
||||
"
|
||||
|
|
|
@ -200,7 +200,7 @@ public class TransactionProcessor extends BaseTransactionProcessor {
|
|||
@SuppressWarnings("rawtypes")
|
||||
protected void postTransactionProcess(TransactionDetails theTransactionDetails) {
|
||||
Set<IResourcePersistentId> resourceIds = theTransactionDetails.getUpdatedResourceIds();
|
||||
if (!resourceIds.isEmpty()) {
|
||||
if (resourceIds != null && !resourceIds.isEmpty()) {
|
||||
List<Long> ids = resourceIds.stream().map(r -> (Long) r.getId()).collect(Collectors.toList());
|
||||
|
||||
myResourceSearchUrlSvc.deleteByResIds(ids);
|
||||
|
|
Loading…
Reference in New Issue