mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
recalculate maxEntityChangeId after rollbacked transaction
This commit is contained in:
@@ -256,6 +256,9 @@ function transactional(func) {
|
||||
require('../becca/becca_loader').load();
|
||||
}
|
||||
|
||||
// the maxEntityChangeId has been incremented during failed transaction, need to recalculate
|
||||
require('./entity_changes').recalculateMaxEntityChangeId();
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user