🎨 API listDocsByPath add an optional parameter maxListCount Fix https://github.com/siyuan-note/siyuan/issues/7993

This commit is contained in:
Liang Ding 2023-04-14 12:03:08 +08:00
parent 31e1966ffa
commit e0b9002005
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -624,7 +624,7 @@ func listDocsByPath(c *gin.Context) {
if arg["maxListCount"] != nil {
// API `listDocsByPath` add an optional parameter `maxListCount` https://github.com/siyuan-note/siyuan/issues/7993
maxListCount = int(arg["maxListCount"].(float64))
if 0 == maxListCount {
if 0 >= maxListCount {
maxListCount = math.MaxInt
}
}