mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
fix: sort by replies (#2351)
This commit is contained in:
@@ -728,7 +728,7 @@ function applyInputToQuery(
|
||||
}
|
||||
break;
|
||||
case GQLCOMMENT_SORT.REPLIES_DESC:
|
||||
query.orderBy({ replyCount: -1, createdAt: -1 });
|
||||
query.orderBy({ childCount: -1, createdAt: -1 });
|
||||
if (input.after) {
|
||||
query.after(input.after as number);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user