From ef0a47a9571c617fc520244b02d792cd9aefff4d Mon Sep 17 00:00:00 2001 From: Damien Daspit Date: Thu, 5 Dec 2024 15:05:30 -0500 Subject: [PATCH] Set array filters in MongoRepository.UpdateAsync --- src/DataAccess/src/SIL.DataAccess/MongoRepository.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DataAccess/src/SIL.DataAccess/MongoRepository.cs b/src/DataAccess/src/SIL.DataAccess/MongoRepository.cs index be2fbfaf..d5b09a1b 100644 --- a/src/DataAccess/src/SIL.DataAccess/MongoRepository.cs +++ b/src/DataAccess/src/SIL.DataAccess/MongoRepository.cs @@ -128,6 +128,8 @@ await _collection IsUpsert = upsert, ReturnDocument = returnOriginal ? ReturnDocument.Before : ReturnDocument.After }; + if (arrayFilters.Count > 0) + options.ArrayFilters = arrayFilters; T? entity; try {