Skip to content

Commit c6a80dc

Browse files
Update src/tools/search.ts
Fix unintended side effect found by gemini Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 26e475e commit c6a80dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const search = async (input: SearchInput): Promise<SearchResult> => {
256256
} catch (e) {
257257
return JSON.stringify({ success: false, error: "Error checking if record is a group: " + e.toString() });
258258
}
259-
} else if (targetDatabase) {
259+
} else if (pDatabaseName) {
260260
// If a specific database was provided, use its root group to scope the search
261261
searchScope = targetDatabase.root();
262262
} else {

0 commit comments

Comments
 (0)