mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: minor fixes with migration
This commit is contained in:
@@ -137,7 +137,7 @@ class Database {
|
||||
}, 15 * 1000);
|
||||
}
|
||||
|
||||
sync(full) {
|
||||
sync(full = true) {
|
||||
return this.syncer.start(full);
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user