get rid of all the NOOP_CALLBACKs

This commit is contained in:
Girish Ramakrishnan
2021-09-17 09:22:46 -07:00
parent b3fe2a4b84
commit c5794b5ecd
8 changed files with 88 additions and 122 deletions
+1 -2
View File
@@ -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;