Island: Search UUID by string value

This commit is contained in:
Kekoa Kaaikala 2022-09-14 17:34:31 +00:00
parent 89954223e8
commit 5c762930bf
1 changed files with 1 additions and 1 deletions

View File

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