mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 13:26:00 +00:00
SYNC: config fixed
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -126,7 +126,7 @@ async function sendToAuditLog(
|
||||
}
|
||||
const config = require('../controllers/config');
|
||||
const settings = await config.getCachedSettings();
|
||||
if (settings?.['storage.useAuditLog'] != 1) {
|
||||
if (settings?.['storage.useAuditLog'] != 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user