mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 API listDocsByPath add an optional parameter maxListCount Fix https://github.com/siyuan-note/siyuan/issues/7993
This commit is contained in:
parent
31e1966ffa
commit
e0b9002005
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,7 @@ func listDocsByPath(c *gin.Context) {
|
||||||
if arg["maxListCount"] != nil {
|
if arg["maxListCount"] != nil {
|
||||||
// API `listDocsByPath` add an optional parameter `maxListCount` https://github.com/siyuan-note/siyuan/issues/7993
|
// API `listDocsByPath` add an optional parameter `maxListCount` https://github.com/siyuan-note/siyuan/issues/7993
|
||||||
maxListCount = int(arg["maxListCount"].(float64))
|
maxListCount = int(arg["maxListCount"].(float64))
|
||||||
if 0 == maxListCount {
|
if 0 >= maxListCount {
|
||||||
maxListCount = math.MaxInt
|
maxListCount = math.MaxInt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue