Skip to content

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

feat: add func for fetching all published notes

thecodrr2cb5e619e74b
diff --git a/packages/core/api/monographs.js b/packages/core/api/monographs.js
index 15df75b02..26b238a63 100644
--- a/packages/core/api/monographs.js
+++ b/packages/core/api/monographs.js
@@ -116,5 +116,11 @@ class Monographs {
this.monographs.splice(this.monographs.indexOf(noteId), 1);
}
+
+ get all() {
+ return this._db.notes.all.filter(
+ (note) => this.monographs.indexOf(note.id) > -1
+ );
+ }
}
export default Monographs;