fix: write wrong type of metadata (#17605)

This commit is contained in:
Haruko386
2026-07-31 16:55:34 +08:00
committed by GitHub
parent 8a66aa7aae
commit 0108cdac67
5 changed files with 109 additions and 5 deletions

View File

@@ -577,9 +577,6 @@ func (h *DocumentHandler) ListDocuments(c *gin.Context) {
return
}
// Mirror Python: an explicit id/name filter that matches nothing is an
// ownership error rather than an empty page. Each filter's existence is
// checked independently of the other.
if docID := c.Query("id"); docID != "" {
idOpts := opts
idOpts.DocIDs = []string{docID}