Skip to content

Commit

Permalink
fix: AfterEventTypeStrategy now correctly checks type
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Nov 27, 2024
1 parent 5c8d274 commit 900cd60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public AfterEventTypeStrategy(params Type[] eventTypes)
_eventTypes = eventTypes;
}

public bool ShouldCreateSnapshot(SnapshotStrategyContext context) => _eventTypes.Contains(context.Events.Last().GetType());
public bool ShouldCreateSnapshot(SnapshotStrategyContext context) => _eventTypes.Contains(context.Events.Last().Event.GetType());
}
}

0 comments on commit 900cd60

Please sign in to comment.