Skip to content

Commit 7a51a24

Browse files
hf-kkleinKonstantin
and
Konstantin
authoredMar 10, 2025
fix: pass along skipConditions when filtering out infinitelyNarrowPatches (#117)
Co-authored-by: Konstantin <konstantin.klein+github@hochfrequenz.de>
1 parent 8078188 commit 7a51a24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎ChronoJsonDiffPatch/ChronoJsonDiffPatch/TimeRangePatchChain.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ public void Add(
324324
if (GetAll().Any(trp => trp.End == infinitelyNarrowPatch.Start && !trp.IsMoment)) // join the patch which is going to be deleted with another patch if it exists
325325
{
326326
var artificialChainWithoutTheRecentlyAddedPatch = new TimeRangePatchChain<TEntity>(
327-
GetAll().Where(p => !p.Equals(patchToBeAdded))
327+
GetAll().Where(p => !p.Equals(patchToBeAdded)),
328+
skipConditions: _skipConditions
328329
);
329330
var stateWithoutMomentPatch =
330331
artificialChainWithoutTheRecentlyAddedPatch.PatchToDate(

0 commit comments

Comments
 (0)