sigesp 0.9.58-20230906 → 0.9.59-20230906
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.
- package/bundles/sigesp.umd.js +2 -2
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +2 -2
- package/fesm2015/sigesp.js.map +1 -1
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -7072,9 +7072,9 @@ class SigespService {
|
|
|
7072
7072
|
*
|
|
7073
7073
|
*/
|
|
7074
7074
|
getCompany(tipo, id) {
|
|
7075
|
-
return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7075
|
+
return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7076
7076
|
if (res.success) {
|
|
7077
|
-
res.data = res.data.map(e => new MEmpresa());
|
|
7077
|
+
res.data = res.data.map(e => new MEmpresa(e));
|
|
7078
7078
|
}
|
|
7079
7079
|
return res;
|
|
7080
7080
|
}));
|