fix(backend): go back to original

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

View File

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