Skip to content

Commit

Permalink
Merge pull request #48 from terwer/dev
Browse files Browse the repository at this point in the history
feat:#42 修复列表排序问题
  • Loading branch information
terwer authored Sep 2, 2022
2 parents 7437eb1 + ead965d commit 33c0dd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/siyuan/siYuanApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ async function getRootBlocks(page: number, pagesize: number, keyword: string) {
AND b1.parent_id=''
AND ((b1.content LIKE '%${keyword}%') OR (b1.tag LIKE '%${keyword}%'))
ORDER BY b1.created DESC LIMIT ${page}, ${pagesize}
)`
)
ORDER BY b2.created DESC`
let data = await sql(stmt)
return data
}
Expand Down
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
yarn vdev

1 comment on commit 33c0dd4

@vercel
Copy link

@vercel vercel bot commented on 33c0dd4 Sep 2, 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.