Skip to content

Commit a414cc7

Browse files
henrybarretootavio
authored andcommitted
fix(api): count the right collection for sessions events
1 parent bd6cdac commit a414cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/store/mongo/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func (s *Store) SessionListEvents(ctx context.Context, uid models.UID, seat int,
368368

369369
queryCount := query
370370
queryCount = append(queryCount, bson.M{"$count": "count"})
371-
count, err := AggregateCount(ctx, s.db.Collection("firewall_rules"), queryCount)
371+
count, err := AggregateCount(ctx, s.db.Collection("sessions_events"), queryCount)
372372
if err != nil {
373373
return nil, 0, FromMongoError(err)
374374
}

0 commit comments

Comments
 (0)