Skip to content

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

core: add reminders lookup

ammarahm-ed946fd3fc1de6
diff --git a/packages/core/api/lookup.js b/packages/core/api/lookup.js
index b1077a561..1788f0b52 100644
--- a/packages/core/api/lookup.js
+++ b/packages/core/api/lookup.js
@@ -58,6 +58,10 @@ export default class Lookup {
return this._byTitle(array, query);
}
+ reminders(array, query) {
+ return search(array, query, (n) => `${n.title} ${n.description || ""}`);
+ }
+
trash(array, query) {
return this._byTitle(array, query);
}