SYNC: config fixed

This commit is contained in:
Jan Prochazka
2025-06-30 13:45:40 +02:00
committed by Diflow
parent 7242515e48
commit 92cbd1c69c
3 changed files with 11 additions and 3 deletions

View File

@@ -275,7 +275,11 @@ module.exports = {
if (process.env.STORAGE_DATABASE) {
updated = {
...currentValue,
...values,
..._.mapValues(values, v => {
if (v === true) return 'true';
if (v === false) return 'false';
return v;
}),
};
await storage.writeConfig({
group: 'settings',