Use id for thumbnail size error detail

This commit is contained in:
Tessa Walsh 2025-01-08 16:34:16 -05:00 committed by sua yoo
parent be9ff04ee8
commit d8655d3bc6
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567

View File

@ -764,7 +764,7 @@ class CollectionOps:
await self.storage_ops.delete_file_object(org, thumbnail_file)
raise HTTPException(
status_code=400,
detail="Upload failed: maxiumum thumbnail size (2 MB) exceeded",
detail="max_thumbnail_size_2_mb_exceeded",
)
if coll.thumbnail: