This commit is contained in:
2021-11-21 23:15:40 +03:00
parent 7f41f9ab0f
commit 4961ab480d

View File

@@ -15,7 +15,7 @@ router = APIRouter(
@router.get("/{object_id}/{object_type}", response_model=CachedFile)
async def get_cached_file(object_id: int, object_type: str):
cached_file = await CachedFileDB.objects.get(
cached_file = await CachedFileDB.objects.get_or_none(
object_id=object_id,
object_type=object_type
)