|
|
@@ -16,7 +16,7 @@ export class MCOMORService {
|
|
|
headers = new HttpHeaders({ Authorization: 'Bearer ' + this.jwt });
|
|
|
usuario_session: USERInterface = {} as USERInterface;
|
|
|
|
|
|
- constructor(private _http: HttpClient, private _snackBar: MatSnackBar) {}
|
|
|
+ constructor(private _http: HttpClient, private _snackBar: MatSnackBar, private _encService: ENCService) {}
|
|
|
|
|
|
ngOnInit() {
|
|
|
this.usuario_session = JSON.parse(localStorage.getItem('TIMUSERENC')!);
|
|
|
@@ -26,7 +26,7 @@ export class MCOMORService {
|
|
|
this.ngOnInit();
|
|
|
return this._http
|
|
|
.get<ResponseData>(
|
|
|
- `${this._url}/consultar/${this.formatoRFC(this.usuario_session.RFCEMPRESA)}`,
|
|
|
+ `${this._url}/consultar/${ this._encService.desencriptar(this.usuario_session.IDUSUARIO) }/${this.formatoRFC(this.usuario_session.RFCEMPRESA)}`,
|
|
|
{ headers: this.headers }
|
|
|
)
|
|
|
.pipe(
|