Skip to content

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

feat: remove favorite from notebook

thecodrr40ce1bc535ca
diff --git a/packages/core/collections/notebooks.js b/packages/core/collections/notebooks.js
index cd09c462b..4eb60f997 100644
--- a/packages/core/collections/notebooks.js
+++ b/packages/core/collections/notebooks.js
@@ -43,7 +43,6 @@ export default class Notebooks extends Collection {
description: notebook.description,
dateCreated: notebook.dateCreated,
pinned: !!notebook.pinned,
- favorite: !!notebook.favorite,
topics: notebook.topics || [],
totalNotes: 0,
};
diff --git a/packages/core/migrations.js b/packages/core/migrations.js
index ca849c83a..59fde7993 100644
--- a/packages/core/migrations.js
+++ b/packages/core/migrations.js
@@ -59,6 +59,7 @@ export const migrations = {
},
notebooks: async function (db, item) {
if (await migrations.handleDeleted(db, "notebooks", item)) return;
+ delete item.favorite;
await db.notebooks.add(item);
},
tags: async function (db, item) {