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]]:
|
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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue