Skip to content

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

feat: monograph -> monographs

thecodrr09eac22eafae
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index c480ac0d2..d1d13e03c 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -17,7 +17,7 @@ import Migrations from "./migrations";
import Outbox from "./outbox";
import UserManager from "./user-manager";
import http from "../utils/http";
-import Monograph from "./monograph";
+import Monographs from "./monographs";
/**
* @type {EventSource}
@@ -70,7 +70,7 @@ class Database {
this.settings = new Settings(this);
this.migrations = new Migrations(this);
this.outbox = new Outbox(this);
- this.monograph = new Monograph(this);
+ this.monographs = new Monographs(this);
// collections
/** @type {Notes} */
@@ -93,6 +93,8 @@ class Database {
await this.migrations.init();
await this.migrations.migrate();
+
+ this.monographs.init();
}
async connectSSE() {
diff --git a/packages/core/api/monograph.js b/packages/core/api/monographs.js
similarity index 98%
rename from packages/core/api/monograph.js
rename to packages/core/api/monographs.js
index 88a4cf4b0..0387d6cb8 100644
--- a/packages/core/api/monograph.js
+++ b/packages/core/api/monographs.js
@@ -1,7 +1,7 @@
import http from "../utils/http";
import Constants from "../utils/constants";
-class Monograph {
+class Monographs {
/**
*
* @param {import("./index").default} db
@@ -125,4 +125,4 @@ class Monograph {
delete this.monographs[noteId];
}
}
-export default Monograph;
+export default Monographs;