Skip to content

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

api: use storage wrapper for context

thecodrr6075d7d477d6
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 0dea81d01..6caea9443 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -1,4 +1,5 @@
import Notes from "../collections/notes";
+import Storage from "../database/storage";
import Notebooks from "../collections/notebooks";
import Trash from "../collections/trash";
import Tags from "../collections/tags";
@@ -11,7 +12,7 @@ import Conflicts from "./conflicts";
class Database {
constructor(context) {
- this.context = context;
+ this.context = new Storage(context);
}
async init() {
this.notebooks = new Notebooks(this.context);