Skip to content

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

:mute: logging

Liang Dingdcb1f395da1c
diff --git a/kernel/sql/block_query.go b/kernel/sql/block_query.go
index 186dae487f..c5910981d4 100644
--- a/kernel/sql/block_query.go
+++ b/kernel/sql/block_query.go
@@ -478,7 +478,7 @@ func selectBlocksRawStmt(stmt string, limit int) (ret []*Block) {
errCount++
}
- if (confLimit && limit < count) || 1 < errCount {
+ if (confLimit && limit < count) || 0 < errCount {
break
}
}