diff --git a/Services/ThingDepreciationService.cs b/Services/ThingDepreciationService.cs index a2edcff4e1aeb79e2e107cf8becd4d81509a66ab..f49c54d8ed5affbf808c9d3d890a1e25681a1461 100644 --- a/Services/ThingDepreciationService.cs +++ b/Services/ThingDepreciationService.cs @@ -1,4 +1,4 @@ -using anydata.Entitys; +using anydata.Entitys; using anydata.Loaders.ResponseModel; using MongoDB.Bson; using MongoDB.Driver; @@ -87,7 +87,12 @@ public class ThingDepreciationService : ITransient { Match = new JObject { - { "locks.exclusion.id", JValue.CreateString(context.Current.id) } + { + "$or", new JArray { + new JObject { "locks.exclusion.id", JValue.CreateString(context.Current.id) }, + new JObject { "locks.exclusion._id", JValue.CreateString(context.Current.id) } + } + } }, Update = new JObject {