mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
pull of peter chnages
This commit is contained in:
@@ -11,7 +11,7 @@ import { fullTaskList } from '../models/dailyworktask.model';
|
||||
import { ChangeProfileService } from './change-profile.service';
|
||||
import { SessionStore } from '../store/session.service';
|
||||
import { StorageService } from './storage.service';
|
||||
import { DocumentManagementStore } from '../store/documentManagement';
|
||||
import { CPSession } from '../store/documentManagement';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
@@ -21,7 +21,6 @@ export class ProcessesService {
|
||||
loggeduser: LoginUserRespose;
|
||||
headers: HttpHeaders;
|
||||
headers2: HttpHeaders;
|
||||
documentMangement = DocumentManagementStore;
|
||||
|
||||
|
||||
|
||||
@@ -46,14 +45,10 @@ export class ProcessesService {
|
||||
|
||||
setHeader() {
|
||||
|
||||
console.log('CPSession.AuthorizationJwt', CPSession.AuthorizationJwt);
|
||||
|
||||
this.headers = new HttpHeaders();
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
this.headers2 = this.headers2.set('Authorization',"bearer "+ CPSession.AuthorizationJwt);
|
||||
|
||||
this.headers2 = new HttpHeaders();
|
||||
this.headers2 = this.headers2.set('Authorization',"Bearer "+ this.documentMangement.session?.AuthorizationJwt
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
uploadFile(formData:any){
|
||||
@@ -137,8 +132,6 @@ export class ProcessesService {
|
||||
|
||||
GetDraftByID(id:string): Observable<any> {
|
||||
|
||||
console.log('Instancia estas instanciar?',this.documentMangement.session?.AuthorizationJwt)
|
||||
|
||||
const geturl = environment.apiPCURL + `Documents/${id}`;
|
||||
let params = new HttpParams();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user