Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964

Daniel9480403d2f9c
diff --git a/kernel/api/av.go b/kernel/api/av.go
index 0854b7fa2e..c63aeb7b4f 100644
--- a/kernel/api/av.go
+++ b/kernel/api/av.go
@@ -59,10 +59,9 @@ func batchReplaceAttributeViewBlocks(c *gin.Context) {
func setAttrViewGroup(c *gin.Context) {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
arg, ok := util.JsonArg(c, ret)
if !ok {
+ c.JSON(http.StatusOK, ret)
return
}
@@ -74,12 +73,14 @@ func setAttrViewGroup(c *gin.Context) {
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
+ c.JSON(http.StatusOK, ret)
return
}
group := &av.ViewGroup{}
if err = gulu.JSON.UnmarshalJSON(data, group); nil != err {
ret.Code = -1
ret.Msg = err.Error()
+ c.JSON(http.StatusOK, ret)
return
}
@@ -87,6 +88,8 @@ func setAttrViewGroup(c *gin.Context) {
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
+
+ c.JSON(http.StatusOK, ret)
return
}