Skip to content

Commit c7597ae

Browse files
stavris8894oskardudycz
authored andcommitted
Update IncidentSummary.cs
1 parent fbfd68f commit c7597ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sample/Helpdesk/Helpdesk.Api/Incidents/GetCustomerIncidentsSummary/IncidentSummary.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ public class CustomerIncidentsSummaryGrouper: IAggregateGrouper<Guid>
5050
{
5151
private readonly Type[] eventTypes =
5252
{
53-
typeof(IEvent<IncidentResolved>), typeof(IEvent<ResolutionAcknowledgedByCustomer>),
54-
typeof(IEvent<IncidentClosed>)
53+
typeof(IncidentResolved), typeof(ResolutionAcknowledgedByCustomer),
54+
typeof(IncidentClosed)
5555
};
5656

5757
public async Task Group(IQuerySession session, IEnumerable<IEvent> events, ITenantSliceGroup<Guid> grouping)
5858
{
5959
var filteredEvents = events
60-
.Where(ev => eventTypes.Contains(ev.GetType()))
60+
.Where(ev => eventTypes.Contains(ev.EventType))
6161
.ToList();
6262

6363
if (!filteredEvents.Any())

0 commit comments

Comments
 (0)