浏览代码

Cambios en el organigrama

JeanBenitez 3 年之前
父节点
当前提交
0834c1466a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      vacaciones/src/app/services/mco/mcomor/mcomor.service.ts

+ 2 - 2
vacaciones/src/app/services/mco/mcomor/mcomor.service.ts

@@ -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(