Commit 3e02b530 authored by Patricio Bruna's avatar Patricio Bruna

Remove ES6 stuff

parent 22a97357
......@@ -290,7 +290,7 @@ class ZimbraAdminApi {
// allServers: 0|1,
// entry: Name or Id of the object, should be relevant to type
// }
flushCache(flushData = {}, callback) {
flushCache(flushData, callback) {
const request_data = this.buildRequestData('FlushCache', callback);
request_data.parse_response = ResponseParser.emptyResponse;
request_data.params.params = {
......
......@@ -12,7 +12,7 @@ class Domain extends Zimbra {
}
// TODO: Too ugly code
addAdmin(account_id, coses = [], callback) {
addAdmin(account_id, coses, callback) {
const request_data = {};
const grantee_data = { 'type': 'usr', 'identifier': account_id };
const modifyAccountRequest = this.api.modifyAccount(account_id, { zimbraIsDelegatedAdminAccount: 'TRUE' });
......@@ -28,7 +28,7 @@ class Domain extends Zimbra {
this.api.performRequest(request_data);
}
buildCosesGrantsRequest(coses = [], grantee_data) {
buildCosesGrantsRequest(coses, grantee_data) {
const requests = [];
coses.forEach((c) => {
const target_data = { type: 'cos', identifier: c };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment