mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-22 20:00:30 -05:00
fix sync of audit log
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user