diff --git a/packages/core/api/index.js b/packages/core/api/index.js index 4ad5789be..3ea17d844 100644 --- a/packages/core/api/index.js +++ b/packages/core/api/index.js @@ -137,7 +137,7 @@ class Database { }, 15 * 1000); } - sync(full) { + sync(full = true) { return this.syncer.start(full); } diff --git a/packages/core/migrations.js b/packages/core/migrations.js index 7af10584a..3a7b6585c 100644 --- a/packages/core/migrations.js +++ b/packages/core/migrations.js @@ -35,7 +35,7 @@ export const migrations = { const notebook = item.notebook; delete item.notebook; if (notebook && notebook.id && notebook.topic) { - notebook.topics = [notebook.topics]; + notebook.topics = [notebook.topic]; delete notebook.topic; item.notebooks = [notebook]; }