Skip to content

Commit

Permalink
Testing to see if this fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidMitchell committed Jan 14, 2025
1 parent a7e4bac commit b85b169
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public <T> CompletableFuture<T> save(T entity, EntityContext context) {
.index(structure.getItemIndex())
.id(entityHolder.getDocumentId())
.document(binaryData)
.refresh(Refresh.True))
.refresh(Refresh.WaitFor))
.thenApply(indexResponse -> {
context.put(EntityContextConstants.ENTITY_ID_KEY, entityHolder.id());
return (T) rawEntity;
Expand All @@ -230,7 +230,7 @@ public <T> CompletableFuture<T> save(T entity, EntityContext context) {
.index(structure.getItemIndex())
.id(entityHolder.getDocumentId())
.document(entityHolder.entity())
.refresh(Refresh.True))
.refresh(Refresh.WaitFor))
.thenApply(indexResponse -> {
context.put(EntityContextConstants.ENTITY_ID_KEY, entityHolder.id());
return (T) entityHolder.entity();
Expand Down

0 comments on commit b85b169

Please sign in to comment.