Add event to track dashboard update

This commit is contained in:
Girish Ramakrishnan
2019-02-04 20:24:28 -08:00
parent 9f5471ee85
commit 7e6ce1a1ef
5 changed files with 10 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ function getLogStream(req, res, next) {
function setDashboardDomain(req, res, next) {
if (!req.body.domain || typeof req.body.domain !== 'string') return next(new HttpError(400, 'domain must be a string'));
cloudron.setDashboardDomain(req.body.domain, function (error) {
cloudron.setDashboardDomain(req.body.domain, auditSource(req), function (error) {
if (error && error.reason === CloudronError.BAD_FIELD) return next(new HttpError(404, error.message));
if (error) return next(new HttpError(500, error));