mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
fix: patch for sort bug
This commit is contained in:
1 parent
8c192d283d
commit
a318b56233
1 file changed
+1
-1
@@ -366,7 +366,7 @@ function applyInputToQuery(input: ConnectionInput, query: Query<Comment>) {
|
||||
}
|
||||
break;
|
||||
case GQLCOMMENT_SORT.RESPECT_DESC:
|
||||
query.orderBy({ "action_counts.respect": -1, created_at: -1 });
|
||||
query.orderBy({ "action_counts.REACTION": -1, created_at: -1 });
|
||||
if (input.after) {
|
||||
query.after(input.after as number);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user