get rid of all the NOOP_CALLBACKs
This commit is contained in:
+1
-2
@@ -102,7 +102,6 @@ const assert = require('assert'),
|
||||
_ = require('underscore');
|
||||
|
||||
const DNS_OPTIONS = { timeout: 5000 };
|
||||
const NOOP_CALLBACK = function (error) { if (error) debug(error); };
|
||||
const REMOVE_MAILBOX_CMD = path.join(__dirname, 'scripts/rmmailbox.sh');
|
||||
|
||||
const MAILBOX_FIELDS = [ 'name', 'type', 'ownerId', 'ownerType', 'aliasName', 'aliasDomain', 'creationTime', 'membersJson', 'membersOnly', 'domain', 'active' ].join(',');
|
||||
@@ -978,7 +977,7 @@ async function setLocation(subdomain, domain, auditSource) {
|
||||
await settings.setMailLocation(domain, fqdn);
|
||||
|
||||
const taskId = await tasks.add(tasks.TASK_CHANGE_MAIL_LOCATION, [ auditSource ]);
|
||||
tasks.startTask(taskId, {}, NOOP_CALLBACK);
|
||||
tasks.startTask(taskId, {});
|
||||
await eventlog.add(eventlog.ACTION_MAIL_LOCATION, auditSource, { subdomain, domain, taskId });
|
||||
|
||||
return taskId;
|
||||
|
||||
Reference in New Issue
Block a user