- changing note parent must change date_modified otherwise it will trigger a conflict

- when syncing note tree we don't overwrite is_expanded status
This commit is contained in:
azivner
2017-11-09 21:11:33 -05:00
parent a3b2e705ce
commit 433982e7bc
2 changed files with 10 additions and 4 deletions

View File

@@ -38,6 +38,8 @@ async function updateNoteTree(entity, sourceId) {
if (orig === null || orig.date_modified < entity.date_modified) {
await sql.doInTransaction(async () => {
delete entity.is_expanded;
await sql.replace('notes_tree', entity);
await sql.addNoteTreeSync(entity.note_id, sourceId);