fix: add agent exists check [LET-5954] (#5823)
add agent exists check to prevent reading from different org Co-authored-by: Ari Webb <ari@letta.com>
This commit is contained in:
@@ -131,6 +131,9 @@ class ArchiveManager:
|
||||
]
|
||||
|
||||
async with db_registry.async_session() as session:
|
||||
if agent_id:
|
||||
await validate_agent_exists_async(session, agent_id, actor)
|
||||
|
||||
archives = await ArchiveModel.list_async(
|
||||
db_session=session,
|
||||
before=before,
|
||||
|
||||
Reference in New Issue
Block a user