mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Fix deleting
This commit is contained in:
@@ -82,7 +82,7 @@ async def download_cached_file(object_id: int, object_type: str):
|
|||||||
|
|
||||||
@router.delete("/{object_id}/{object_type}", response_model=CachedFile)
|
@router.delete("/{object_id}/{object_type}", response_model=CachedFile)
|
||||||
async def delete_cached_file(object_id: int, object_type: str):
|
async def delete_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
|
object_id=object_id, object_type=object_type
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user