Make support and alert email customizable

This commit is contained in:
Girish Ramakrishnan
2019-05-07 11:30:12 -07:00
parent 41e525e037
commit a78cab36ab
7 changed files with 40 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ function feedback(req, res, next) {
if (req.body.appId && typeof req.body.appId !== 'string') return next(new HttpError(400, 'appId must be string'));
appstore.sendFeedback(_.extend({ }, req.body, { email: req.user.email, displayName: req.user.displayName }), function (error) {
if (error) return next(new HttpError(503, `Error contacting cloudron.io: ${error.message}. Please email support@cloudron.io`));
if (error) return next(new HttpError(503, `Error contacting cloudron.io: ${error.message}. Please email ${custom.supportEmail()}`));
next(new HttpSuccess(201, {}));
});