fixed migrations

This commit is contained in:
zadam
2022-12-08 13:45:56 +01:00
parent 653f80f7d8
commit 73eb585398
11 changed files with 94 additions and 98 deletions

View File

@@ -252,6 +252,12 @@ function checkHiddenSubtreeRecursively(parentNoteId, item) {
}
}
if (note.type !== item.type) {
// enforce correct note type
note.type = item.type;
note.save();
}
if (!branch) {
// not sure if there's some better way to recover
log.error(`Cannot find branch id='${item.id}', ignoring...`);