mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
sync are sent upon DB commit
This commit is contained in:
@@ -21,6 +21,18 @@ function isEntityEventsDisabled() {
|
||||
return !!namespace.get('disableEntityEvents');
|
||||
}
|
||||
|
||||
function getSyncRows() {
|
||||
return namespace.get('syncRows') || [];
|
||||
}
|
||||
|
||||
function addSyncRow(syncRow) {
|
||||
const syncRows = getSyncRows();
|
||||
|
||||
syncRows.push(syncRow);
|
||||
|
||||
namespace.set('syncRows', syncRows);
|
||||
}
|
||||
|
||||
function reset() {
|
||||
clsHooked.reset();
|
||||
}
|
||||
@@ -32,5 +44,7 @@ module.exports = {
|
||||
getSourceId,
|
||||
disableEntityEvents,
|
||||
isEntityEventsDisabled,
|
||||
reset
|
||||
reset,
|
||||
getSyncRows,
|
||||
addSyncRow
|
||||
};
|
||||
Reference in New Issue
Block a user