A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: monograph -> monographs
thecodrr09eac22eafae
diff --git a/packages/core/api/index.js b/packages/core/api/index.jsindex 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.jssimilarity index 98%rename from packages/core/api/monograph.jsrename to packages/core/api/monographs.jsindex 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;