on user profile sort create_at desc

This commit is contained in:
keyan 2021-06-22 13:53:05 -05:00
parent 89c1fab057
commit f7b4618b4a

View File

@ -44,7 +44,7 @@ export default {
${SELECT}
FROM "Item"
WHERE "userId" = $1 AND "parentId" IS NULL AND created_at <= $2
ORDER BY created_at
ORDER BY created_at DESC
OFFSET $3
LIMIT ${LIMIT}`, Number(userId), decodedCursor.time, decodedCursor.offset)
: sort === 'hot'