mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fixed backup and anonymization with better-sqlite3
This commit is contained in:
@@ -97,7 +97,12 @@ function route(method, path, middleware, routeHandler, resultHandler, transactio
|
||||
});
|
||||
|
||||
if (resultHandler) {
|
||||
resultHandler(req, res, result);
|
||||
if (result && result.then) {
|
||||
result.then(actualResult => resultHandler(req, res, actualResult))
|
||||
}
|
||||
else {
|
||||
resultHandler(req, res, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user