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