fixed backup and anonymization with better-sqlite3

This commit is contained in:
zadam
2020-06-20 23:09:34 +02:00
parent 027afab6b1
commit 969f31dde2
8 changed files with 53 additions and 70 deletions

View File

@@ -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) {