mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: minor fixes with migration
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user