mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
removed id from notes_history, new primary key is note_history_id
This commit is contained in:
@@ -285,8 +285,6 @@ async function updateNoteHistory(entity, sourceId, syncLog) {
|
||||
|
||||
if (orig === null || orig.date_modified_to < entity.date_modified_to) {
|
||||
await sql.doInTransaction(async () => {
|
||||
delete entity['id'];
|
||||
|
||||
await sql.replace('notes_history', entity);
|
||||
|
||||
await sql.addNoteHistorySync(entity.note_history_id, sourceId);
|
||||
|
||||
Reference in New Issue
Block a user