Skip to content

Commit 777a8c0

Browse files
committed
fix recent sort for paginated comments
1 parent 8a4bb7b commit 777a8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/resolvers/item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function commentsOrderByClause (me, models, sort) {
4141
if (sort === 'recent') {
4242
return `ORDER BY ${sharedSorts},
4343
("Item".cost > 0 OR "Item"."weightedVotes" - "Item"."weightedDownVotes" > 0) DESC,
44-
COALESCE(("payIn"->>'payInStateChangedAt')::timestamp(3), "Item".created_at) DESC, "Item".id DESC`
44+
"Item".created_at DESC, "Item".id DESC`
4545
}
4646

4747
if (sort === 'hot') {

0 commit comments

Comments
 (0)