move all bootstrap in initialization module

This commit is contained in:
lesion
2022-03-09 14:21:13 +01:00
parent 4b94af3d46
commit eddf8a3913
6 changed files with 65 additions and 63 deletions

View File

@@ -72,7 +72,6 @@ module.exports = {
async initSettings (req, res, next) {
// initialize settings
const settings = settingsController.settings
res.locals.settings = cloneDeep(settingsController.settings)
if (res.locals.settings.smtp && res.locals.settings.smtp.auth) {