mirror of https://gitlab.com/litecord/litecord.git
storage: fix attachment ids fetch
This commit is contained in:
parent
54650161b9
commit
501b82b4f0
|
|
@ -640,8 +640,8 @@ class Storage:
|
|||
async def get_attachments(self, message_id: int) -> List[Dict[str, Any]]:
|
||||
"""Get a list of attachment objects tied to the message."""
|
||||
attachment_ids = await self.db.fetch("""
|
||||
SELECT attachment_id
|
||||
FROM message_attachments
|
||||
SELECT id
|
||||
FROM attachments
|
||||
WHERE message_id = $1
|
||||
""", message_id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue