mirror of
https://github.com/zadam/trilium.git
synced 2026-09-11 02:38:27 +02:00
#98, working sync setup from server to desktop instance + refactoring of DB initialization
This commit is contained in:
@@ -157,10 +157,10 @@ async function transactional(func) {
|
||||
transactionActive = true;
|
||||
transactionPromise = new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
cls.namespace.set('isInTransaction', true);
|
||||
|
||||
await beginTransaction();
|
||||
|
||||
cls.namespace.set('isInTransaction', true);
|
||||
|
||||
ret = await func();
|
||||
|
||||
await commit();
|
||||
|
||||
Reference in New Issue
Block a user