Skip to content

Commit ff3f99a

Browse files
committed
fix: skip failed
1 parent d1b164b commit ff3f99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/sub/kb_document.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (k *KBDoc) handleInsert(ctx context.Context, kbID uint, docID uint) error {
7171
doc, err := k.doc.GetByID(ctx, kbID, docID)
7272
if err != nil {
7373
logger.WithErr(err).Error("doc not found")
74-
return err
74+
return nil
7575
}
7676
var content string
7777
switch doc.DocType {

0 commit comments

Comments
 (0)