refactor: re-order arguments

This commit is contained in:
Girish Ramakrishnan
2020-01-24 16:54:14 -08:00
parent 3f1533896e
commit 45053205db
2 changed files with 4 additions and 4 deletions

View File

@@ -316,7 +316,7 @@ function getList(req, res, next) {
assert.strictEqual(typeof req.params.domain, 'string');
assert.strictEqual(typeof req.params.name, 'string');
mail.getList(req.params.domain, req.params.name, function (error, result) {
mail.getList(req.params.name, req.params.domain, function (error, result) {
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, { list: result }));