fix(backend): remove agent

pull/9380/head
Nicholas Tindle 2025-01-31 06:25:54 -06:00 committed by GitHub
parent f4880dc49d
commit 2699de061d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -809,12 +809,11 @@ async def get_agent(
try:
store_listing_version = (
await prisma.models.StoreListingVersion.prisma().find_unique(
where={"id": store_listing_version_id},
include={"Agent": True},
where={"id": store_listing_version_id}
)
)
if not store_listing_version or not store_listing_version.Agent:
if not store_listing_version:
raise fastapi.HTTPException(
status_code=404,
detail=f"Store listing version {store_listing_version_id} not found",