Island: Remove unneccessary call to list()

This commit is contained in:
Kekoa Kaaikala 2022-09-14 19:35:05 +00:00
parent cd84280e79
commit 9ec91ec97a
1 changed files with 1 additions and 1 deletions

View File

@ -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))