eventlog: log event on alias update

This commit is contained in:
Girish Ramakrishnan
2022-02-24 20:30:13 -08:00
parent a3e097d541
commit 1a87856655
4 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ async function setAliases(req, res, next) {
if (typeof alias.domain !== 'string') return next(new HttpError(400, 'domain must be a string'));
}
const [error] = await safe(mail.setAliases(req.params.name, req.params.domain, req.body.aliases));
const [error] = await safe(mail.setAliases(req.params.name, req.params.domain, req.body.aliases, AuditSource.fromRequest(req)));
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(202));