websocket stuff separated into messaging.js

This commit is contained in:
azivner
2017-11-28 17:52:47 -05:00
parent 3d84f5c3b0
commit 91c2f9e7cb
4 changed files with 70 additions and 68 deletions

View File

@@ -137,8 +137,6 @@ async function updateNote(noteId, newNote, ctx) {
await encryptNote(newNote, ctx);
}
const origNoteDetail = await sql.getSingleResult("SELECT * FROM notes WHERE note_id = ?", [noteId]);
const now = utils.nowTimestamp();
const historySnapshotTimeInterval = parseInt(await options.getOption('history_snapshot_time_interval'));