diff --git a/monkey/monkey_island/cc/repository/mongo_event_repository.py b/monkey/monkey_island/cc/repository/mongo_event_repository.py index fe85b3216..6614e165b 100644 --- a/monkey/monkey_island/cc/repository/mongo_event_repository.py +++ b/monkey/monkey_island/cc/repository/mongo_event_repository.py @@ -64,5 +64,5 @@ class MongoEventRepository(IEventRepository): return serializer.deserialize(mongo_record) def _query_events(self, query: Dict[Any, Any]) -> Sequence[AbstractAgentEvent]: - serialized_events = list(self._events_collection.find(query, {MONGO_OBJECT_ID_KEY: False})) + serialized_events = self._events_collection.find(query, {MONGO_OBJECT_ID_KEY: False}) return list(map(self._deserialize, serialized_events))