fix: minor fixes with migration

This commit is contained in:
thecodrr
2020-12-08 11:58:45 +05:00
parent 6746df2b7c
commit acd548fd38
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ class Database {
}, 15 * 1000); }, 15 * 1000);
} }
sync(full) { sync(full = true) {
return this.syncer.start(full); return this.syncer.start(full);
} }

View File

@@ -35,7 +35,7 @@ export const migrations = {
const notebook = item.notebook; const notebook = item.notebook;
delete item.notebook; delete item.notebook;
if (notebook && notebook.id && notebook.topic) { if (notebook && notebook.id && notebook.topic) {
notebook.topics = [notebook.topics]; notebook.topics = [notebook.topic];
delete notebook.topic; delete notebook.topic;
item.notebooks = [notebook]; item.notebooks = [notebook];
} }