Show newer pinned posts first (#6884)

This commit is contained in:
Elias Nahum 2022-12-20 11:41:01 +02:00 committed by GitHub
parent 712324c756
commit a9464c365e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,6 +209,7 @@ export const queryPinnedPostsInChannel = (database: Database, channelId: string)
Q.where('channel_id', channelId),
Q.where('is_pinned', Q.eq(true)),
),
Q.sortBy('create_at', Q.asc),
);
};