sigesp 0.9.22-20221229 → 0.9.23-20221230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6521,15 +6521,7 @@
6521
6521
  */
6522
6522
  SigespService.prototype.getCentroCosto = function (tipo, id) {
6523
6523
  if (tipo === void 0) { tipo = null; }
6524
- return this.http.get(this.URL + "/dao/scg/centro_costo_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) {
6525
- if (tipo == 'all') {
6526
- resp = resp.data.map(function (element) { return new MCentroCosto(element); });
6527
- }
6528
- else {
6529
- resp.data.map(function (element) { return new MCentroCosto(element); });
6530
- }
6531
- return resp;
6532
- }));
6524
+ return this.http.get(this.URL + "/dao/scg/centro_costo_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.data.map(function (element) { return new MCentroCosto(element); }); }));
6533
6525
  };
6534
6526
  /**
6535
6527
  * @description Obtiene los centros de costo