replace with custom superagent based on fetch API

This commit is contained in:
Girish Ramakrishnan
2025-02-14 17:26:54 +01:00
parent 68a08b1f62
commit 8e58349bfa
66 changed files with 1086 additions and 1031 deletions

View File

@@ -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) {