replace with custom superagent based on fetch API
This commit is contained in:
@@ -78,7 +78,7 @@ const assert = require('assert'),
|
||||
safe = require('safetydance'),
|
||||
services = require('./services.js'),
|
||||
shell = require('./shell.js')('mail'),
|
||||
superagent = require('superagent'),
|
||||
superagent = require('./superagent.js'),
|
||||
validator = require('validator'),
|
||||
_ = require('./underscore.js');
|
||||
|
||||
@@ -1024,7 +1024,7 @@ async function removeSolrIndex(mailbox) {
|
||||
|
||||
if (error) throw new BoxError(BoxError.MAIL_ERROR, `Could not remove solr index: ${error.message}`);
|
||||
|
||||
if (response.status !== 200) throw new BoxError(BoxError.MAIL_ERROR, `Error removing solr index - ${response.status} ${JSON.stringify(response.body)}`);
|
||||
if (response.status !== 200) throw new BoxError(BoxError.MAIL_ERROR, `Error removing solr index - ${response.status} ${response.text}`);
|
||||
}
|
||||
|
||||
async function delMailbox(name, domain, options, auditSource) {
|
||||
|
||||
Reference in New Issue
Block a user