fix sync of audit log

This commit is contained in:
azivner
2017-10-26 21:53:26 -04:00
parent 791314ba1a
commit 297da47b34
4 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ const sql = require('./sql');
const fs = require('fs-extra');
const log = require('./log');
const APP_DB_VERSION = 13;
const APP_DB_VERSION = 14;
const MIGRATIONS_DIR = "./migrations";
async function migrate() {
-2
View File
@@ -135,8 +135,6 @@ async function putChanged(changed) {
}
for (const audit of changed.audit_log) {
delete audit['id'];
await sql.insert("audit_log", audit, true);
log.info("Update/sync audit_log for noteId=" + audit.note_id);