fix: indentation
This commit is contained in:
parent
6ed64153e7
commit
0f588baa3e
1 changed files with 24 additions and 24 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
})]);
|
})]);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue