fix: indentation

This commit is contained in:
Marcell Fülöp 2023-03-09 21:24:12 +00:00
parent 6ed64153e7
commit 0f588baa3e
No known key found for this signature in database
GPG Key ID: F0D4F153995E73BB

View File

@ -155,30 +155,30 @@ const setupDefaultSettings = () => {
logger.debug('Default setting setup not required');
}
}),
settingModel
.query()
.select(settingModel.raw('COUNT(`id`) as `count`'))
.where({id: 'oidc-config'})
.first()
.then((row) => {
if (!row.count) {
settingModel
.query()
.insert({
id: 'oidc-config',
name: 'Open ID Connect',
description: 'Sign in to Nginx Proxy Manager with an external Identity Provider',
value: 'metadata',
meta: {},
})
.then(() => {
logger.info('Added oidc-config setting');
});
}
if (debug_mode) {
logger.debug('Default setting setup not required');
}
})]);
settingModel
.query()
.select(settingModel.raw('COUNT(`id`) as `count`'))
.where({id: 'oidc-config'})
.first()
.then((row) => {
if (!row.count) {
settingModel
.query()
.insert({
id: 'oidc-config',
name: 'Open ID Connect',
description: 'Sign in to Nginx Proxy Manager with an external Identity Provider',
value: 'metadata',
meta: {},
})
.then(() => {
logger.info('Added oidc-config setting');
});
}
if (debug_mode) {
logger.debug('Default setting setup not required');
}
})]);
};
/**