Skip to content

Commit

Permalink
this should fix ig.
Browse files Browse the repository at this point in the history
  • Loading branch information
subinps authored Jul 27, 2021
1 parent a37c8cc commit d730a7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ async def delete(bot, message):
result = await Media.collection.delete_one({
'file_name': media.file_name,
'file_size': media.file_size,
'mime_type': media.mime_type,
'caption': reply.caption
'mime_type': media.mime_type
})
if result.deleted_count:
await msg.edit('File is successfully deleted from database')
Expand Down

0 comments on commit d730a7d

Please sign in to comment.