Skip to content

Commit

Permalink
feat:#42 修复列表排序问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Sep 2, 2022
1 parent 97ea279 commit ead965d
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

0 comments on commit ead965d

Please sign in to comment.