Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix notes search in tags, colors & notebooks not working

Abdullah Attaa364ae2e9d4f
diff --git a/packages/core/src/api/lookup.ts b/packages/core/src/api/lookup.ts
index e15876881..de9ce51c5 100644
--- a/packages/core/src/api/lookup.ts
+++ b/packages/core/src/api/lookup.ts
@@ -65,7 +65,7 @@ export default class Lookup {
eb
.selectFrom("content_fts")
.$if(!!notes, (eb) =>
- eb.where("id", "in", notes!.filter.select("id"))
+ eb.where("noteId", "in", notes!.filter.select("id"))
)
.$if(excludedIds.length > 0, (eb) =>
eb.where("id", "not in", excludedIds)