Skip to content

Commit

Permalink
Merge pull request #53 from terwer/dev
Browse files Browse the repository at this point in the history
feat:#51 优化思源笔记默认排序
  • Loading branch information
terwer authored Sep 5, 2022
2 parents 926136e + 3ccdd61 commit 2f0196a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/siyuan/siYuanApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ async function getRootBlocks(page: number, pagesize: number, keyword: string) {
WHERE 1 = 1
AND b1.parent_id=''
AND ((b1.content LIKE '%${keyword}%') OR (b1.tag LIKE '%${keyword}%'))
ORDER BY b1.created DESC LIMIT ${page}, ${pagesize}
ORDER BY b1.updated DESC,b1.created DESC LIMIT ${page}, ${pagesize}
)
ORDER BY b2.created DESC`
ORDER BY b2.updated DESC,b2.created DESC`
let data = await sql(stmt)
return data
}
Expand Down

1 comment on commit 2f0196a

@vercel
Copy link

@vercel vercel bot commented on 2f0196a Sep 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.