forked from p15670423/monkey
Island: Search UUID by string value
This commit is contained in:
parent
89954223e8
commit
5c762930bf
|
@ -51,7 +51,7 @@ class MongoEventRepository(IEventRepository):
|
|||
|
||||
def get_events_by_source(self, source: AgentID) -> Sequence[AbstractAgentEvent]:
|
||||
try:
|
||||
serialized_events = list(self._events_collection.find({"source": source}))
|
||||
serialized_events = list(self._events_collection.find({"source": str(source)}))
|
||||
return list(map(self._deserialize, serialized_events))
|
||||
except Exception as err:
|
||||
raise RetrievalError(f"Error retrieving events for source {source}: {err}")
|
||||
|
|
Loading…
Reference in New Issue