on user profile sort create_at desc
This commit is contained in:
parent
89c1fab057
commit
f7b4618b4a
@ -44,7 +44,7 @@ export default {
|
|||||||
${SELECT}
|
${SELECT}
|
||||||
FROM "Item"
|
FROM "Item"
|
||||||
WHERE "userId" = $1 AND "parentId" IS NULL AND created_at <= $2
|
WHERE "userId" = $1 AND "parentId" IS NULL AND created_at <= $2
|
||||||
ORDER BY created_at
|
ORDER BY created_at DESC
|
||||||
OFFSET $3
|
OFFSET $3
|
||||||
LIMIT ${LIMIT}`, Number(userId), decodedCursor.time, decodedCursor.offset)
|
LIMIT ${LIMIT}`, Number(userId), decodedCursor.time, decodedCursor.offset)
|
||||||
: sort === 'hot'
|
: sort === 'hot'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user