Show newer pinned posts first (#6884)
This commit is contained in:
parent
712324c756
commit
a9464c365e
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue