Skip to content

Commit 05cb2fd

Browse files
committed
fix: fix TypeScript error for tags property
1 parent 00351ad commit 05cb2fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/ai/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ function createSearchAllNotesTool(): ToolDefinition {
791791
bookTitle: bookMap.get(n.bookId) || "Unknown",
792792
chapterTitle: n.chapterTitle,
793793
highlightedText: n.type === "highlight_note" ? (n as any).highlightedText : undefined,
794-
tags: n.tags,
794+
tags: n.type === "note" ? (n as any).tags : undefined,
795795
createdAt: n.createdAt,
796796
})),
797797
};

0 commit comments

Comments
 (0)