From e0b9002005f7a5200882da109713da03f6a61175 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 14 Apr 2023 12:03:08 +0800 Subject: [PATCH] :art: API `listDocsByPath` add an optional parameter `maxListCount` Fix https://github.com/siyuan-note/siyuan/issues/7993 --- kernel/api/filetree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/api/filetree.go b/kernel/api/filetree.go index 4ecc3163f..c130ccbb3 100644 --- a/kernel/api/filetree.go +++ b/kernel/api/filetree.go @@ -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 } }