mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
bug fixes
This commit is contained in:
@@ -7,10 +7,13 @@ const becca = require("../becca/becca");
|
||||
|
||||
let maxEntityChangeId = 0;
|
||||
|
||||
function addEntityChange(origEntityChange) {
|
||||
function addEntityChange(origEntityChange, keepOriginalId = false) {
|
||||
const ec = {...origEntityChange};
|
||||
|
||||
delete ec.id;
|
||||
if (!keepOriginalId) {
|
||||
delete ec.id;
|
||||
}
|
||||
|
||||
ec.sourceId = ec.sourceId || cls.getSourceId() || sourceIdService.getCurrentSourceId();
|
||||
ec.isSynced = ec.isSynced ? 1 : 0;
|
||||
ec.isErased = ec.isErased ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user