Skip to content

Commit

Permalink
#634 - Handle case on multi storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementBareth committed Nov 30, 2022
1 parent 97aa515 commit 8bad32a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ public PersistenceActionResult createOrUpdate(Repository repository, CustomEntit
StorageImpl impl = provider.findImplementation(storage);
PersistenceActionResult results = null;
for (var storageConf : repository.getStorageConfigurations(storage)) {
results = impl.createOrUpdate(repository, storageConf, ceiAfterPreEvents, customFieldTemplates, foundId);
var intermediateResults = impl.createOrUpdate(repository, storageConf, ceiAfterPreEvents, customFieldTemplates, foundId);
if (intermediateResults != null) {
results = intermediateResults;
}
}
if (results != null) {
uuid = results.getBaseEntityUuid();
Expand Down

0 comments on commit 8bad32a

Please sign in to comment.