Skip to content

Commit 4d5c826

Browse files
committed
Merge remote-tracking branch 'origin/main' into feature/elastic-client
2 parents d7dd80b + 17d1abf commit 4d5c826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Foundatio.Repositories.Elasticsearch/Repositories/ElasticRepositoryBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ public virtual async Task<long> PatchAllAsync(IRepositoryQuery query, IPatchOper
841841
if (scriptOperation == null && partialOperation == null)
842842
throw new ArgumentException("Unknown operation type", nameof(operation));
843843

844-
if (!IsCacheEnabled && scriptOperation != null && (DocumentsChanged == null || !DocumentsChanged.HasHandlers))
844+
if (!IsCacheEnabled && scriptOperation != null)
845845
{
846846
var request = new UpdateByQueryRequest(Indices.Index(String.Join(",", ElasticIndex.GetIndexesByQuery(query))))
847847
{

0 commit comments

Comments
 (0)