shell: make require take a tag

This commit is contained in:
Girish Ramakrishnan
2024-10-14 19:10:31 +02:00
parent 02823c4158
commit a9e1d7641d
27 changed files with 162 additions and 156 deletions
+2 -2
View File
@@ -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}`);
}