mail: use the new services change task type
This commit is contained in:
@@ -888,7 +888,7 @@ async function setupTurn(app, options) {
|
||||
assert.strictEqual(typeof options, 'object');
|
||||
|
||||
const disabled = app.manifest.addons.turn.optional && !app.enableTurn;
|
||||
if (disabled) return await addonConfigs.set(app.id, 'turn', []);
|
||||
if (disabled) return await addonConfigs.unset(app.id, 'turn');
|
||||
|
||||
const turnSecret = await blobs.getString(blobs.ADDON_TURN_SECRET);
|
||||
if (!turnSecret) throw new BoxError(BoxError.ADDONS_ERROR, 'Turn secret is missing');
|
||||
@@ -1036,7 +1036,7 @@ async function setupSendMail(app, options) {
|
||||
debug('Setting up SendMail');
|
||||
|
||||
const disabled = app.manifest.addons.sendmail.optional && !app.enableMailbox;
|
||||
if (disabled) return await addonConfigs.set(app.id, 'sendmail', []);
|
||||
if (disabled) return await addonConfigs.unset(app.id, 'sendmail');
|
||||
|
||||
const existingPassword = await addonConfigs.getByName(app.id, 'sendmail', '%MAIL_SMTP_PASSWORD');
|
||||
|
||||
@@ -1074,7 +1074,7 @@ async function setupRecvMail(app, options) {
|
||||
|
||||
debug('setupRecvMail: setting up recvmail');
|
||||
|
||||
if (!app.enableInbox) return await addonConfigs.set(app.id, 'recvmail', []);
|
||||
if (!app.enableInbox) return await addonConfigs.unset(app.id, 'recvmail');
|
||||
|
||||
const existingPassword = await addonConfigs.getByName(app.id, 'recvmail', '%MAIL_IMAP_PASSWORD');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user