🐛 The corresponding entry cannot be found in the database relation https://github.com/siyuan-note/siyuan/issues/10523

This commit is contained in:
Daniel 2024-03-06 09:40:04 +08:00
parent 23c4f81289
commit 8e4dbcfa31
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 10 additions and 4 deletions

View file

@ -68,7 +68,11 @@ func getAttributeViewPrimaryKeyValues(c *gin.Context) {
pageSize = int(pageSizeArg.(float64))
}
attributeViewName, rows, err := model.GetAttributeViewPrimaryKeyValues(id, page, pageSize)
keyword := ""
if keywordArg := arg["keyword"]; nil != keywordArg {
keyword = keywordArg.(string)
}
attributeViewName, rows, err := model.GetAttributeViewPrimaryKeyValues(id, keyword, page, pageSize)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()