Commit 622333c6 authored by Patricio Bruna's avatar Patricio Bruna

Fixed buildAttrsMap when working with Arrays

parent 33f8ff07
......@@ -5,23 +5,22 @@
## Accounts
* [ ] Que Dominios administra
* [ ] Que Dominios administra una cuenta
## DistributionList
* [ ] Listas privadas
## Domains
* [X] Devolver casillas segun el tipo de plan, cantidad asignadas y cantidad utilizadas para un dominio
* [ ] Limite de casillas
* [X] Limite de casillas
* [ ] Devolver Tipo de renovación
* [ ] Devolver Fecha de la proxima renovación
* [ ] Devolver Empresa (esto entiendo necesitamos otro API)
* [ ] Devolver Admins del dominio
* [ ] Devolver Listas de distribución del dominio
## Order Refactor
* [ ] Tiene que estar más claro el código en `index.js` porque hay que subir o bajar mucho para
saber que hacer que hace alguna función.
## parseResponse Class?
* [ ] Refactor `index.js` because there are to many parse shit.
......@@ -13359,7 +13359,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.id = resource_obj.id;
this.attrs = this.buildAttrsMap(resource_obj.a);
this.api = zimbra_api_client;
// this.obj = resource_obj;
this.raw_obj = resource_obj;
}
(0, _createClass3.default)(Zimbra, [{
......@@ -13368,7 +13368,7 @@ return /******/ (function(modules) { // webpackBootstrap
var attrs = {};
obj_ary.forEach(function (r) {
if (attrs[r.n]) {
var ary = [attrs[r.n]];
var ary = [].concat.apply([], [attrs[r.n]]);
attrs[r.n] = ary;
attrs[r.n].push(r._content);
} else {
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -7,14 +7,14 @@ export default class Zimbra {
this.id = resource_obj.id;
this.attrs = this.buildAttrsMap(resource_obj.a);
this.api = zimbra_api_client;
// this.obj = resource_obj;
this.raw_obj = resource_obj;
}
buildAttrsMap(obj_ary) {
const attrs = {};
obj_ary.forEach((r) => {
if (attrs[r.n]) {
const ary = [attrs[r.n]];
const ary = [].concat.apply([],[attrs[r.n]]);
attrs[r.n] = ary;
attrs[r.n].push(r._content);
} else {
......
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