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

@@ -67,9 +67,7 @@ function getOptions() {
}
function getOptionsMap() {
const options = getOptions();
return utils.toObject(options, opt => [opt.name, opt.value]);
return require('./sql').getMap("SELECT name, value FROM options ORDER BY name");
}
module.exports = {