shell: make require take a tag
This commit is contained in:
+2
-2
@@ -77,7 +77,7 @@ const assert = require('assert'),
|
||||
path = require('path'),
|
||||
safe = require('safetydance'),
|
||||
services = require('./services.js'),
|
||||
shell = require('./shell.js'),
|
||||
shell = require('./shell.js')('mail'),
|
||||
superagent = require('superagent'),
|
||||
validator = require('validator'),
|
||||
_ = require('underscore');
|
||||
@@ -975,7 +975,7 @@ async function delMailbox(name, domain, options, auditSource) {
|
||||
|
||||
const mailbox =`${name}@${domain}`;
|
||||
if (options.deleteMails) {
|
||||
const [error] = await safe(shell.promises.sudo('removeMailbox', [ REMOVE_MAILBOX_CMD, mailbox ], {}));
|
||||
const [error] = await safe(shell.promises.sudo([ REMOVE_MAILBOX_CMD, mailbox ], {}));
|
||||
if (error) throw new BoxError(BoxError.FS_ERROR, `Error removing mailbox: ${error.message}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user