settings: move branding settings into branding.js
This commit is contained in:
@@ -17,6 +17,7 @@ exports = module.exports = {
|
||||
|
||||
const assert = require('assert'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
branding = require('./branding.js'),
|
||||
debug = require('debug')('box:mailer'),
|
||||
ejs = require('ejs'),
|
||||
mail = require('./mail.js'),
|
||||
@@ -31,7 +32,7 @@ const MAIL_TEMPLATES_DIR = path.join(__dirname, 'mail_templates');
|
||||
|
||||
// This will collect the most common details required for notification emails
|
||||
async function getMailConfig() {
|
||||
const cloudronName = await settings.getCloudronName();
|
||||
const cloudronName = await branding.getCloudronName();
|
||||
const supportConfig = await settings.getSupportConfig();
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user