sync debugging tweaks etc.

This commit is contained in:
azivner
2017-11-05 21:56:42 -05:00
parent 2a9a8da045
commit 1c501beea9
4 changed files with 23 additions and 9 deletions

View File

@@ -37,8 +37,8 @@ async function createNewNote(parentNoteId, note, browserId) {
await sql.doInTransaction(async () => {
await sql.addAudit(audit_category.CREATE_NOTE, browserId, noteId);
await sql.addNoteTreeSync(noteId, browserId);
await sql.addNoteSync(noteId, browserId);
await sql.addNoteTreeSync(noteId);
await sql.addNoteSync(noteId);
const now = utils.nowTimestamp();
@@ -167,8 +167,8 @@ async function deleteNote(noteId, browserId) {
await sql.execute("update notes_tree set is_deleted = 1, date_modified = ? where note_id = ?", [now, noteId]);
await sql.execute("update notes set is_deleted = 1, date_modified = ? where note_id = ?", [now, noteId]);
await sql.addNoteTreeSync(noteId, browserId);
await sql.addNoteSync(noteId, browserId);
await sql.addNoteTreeSync(noteId);
await sql.addNoteSync(noteId);
await sql.addAudit(audit_category.DELETE_NOTE, browserId, noteId);
}