eventlog: log event on alias update
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user