storage: fix attachment ids fetch

This commit is contained in:
Luna 2018-12-08 23:43:14 -03:00
parent 54650161b9
commit 501b82b4f0
1 changed files with 2 additions and 2 deletions

View File

@ -640,8 +640,8 @@ class Storage:
async def get_attachments(self, message_id: int) -> List[Dict[str, Any]]: async def get_attachments(self, message_id: int) -> List[Dict[str, Any]]:
"""Get a list of attachment objects tied to the message.""" """Get a list of attachment objects tied to the message."""
attachment_ids = await self.db.fetch(""" attachment_ids = await self.db.fetch("""
SELECT attachment_id SELECT id
FROM message_attachments FROM attachments
WHERE message_id = $1 WHERE message_id = $1
""", message_id) """, message_id)