mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-05-03 04:22:28 +00:00
fix: indentation
This commit is contained in:
parent
6ed64153e7
commit
0f588baa3e
@ -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…
x
Reference in New Issue
Block a user