channel.pins: ASC -> DESC on get_pins

This commit is contained in:
Luna Mendes 2018-11-21 20:30:34 -03:00
parent 15b8ee1db9
commit 659895062e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ async def get_pins(channel_id):
SELECT message_id
FROM channel_pins
WHERE channel_id = $1
ORDER BY message_id ASC
ORDER BY message_id DESC
""", channel_id)
ids = [r['message_id'] for r in ids]