small fixes
This commit is contained in:
parent
e05a7a9207
commit
0d349e5d38
1 changed files with 1 additions and 3 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
import {Observable} from "rxjs";
|
|
||||||
import {CookieService} from "ngx-cookie";
|
import {CookieService} from "ngx-cookie";
|
||||||
import {tap} from "rxjs/operators";
|
|
||||||
import {AppConfigService} from "@webbpm/base-package";
|
import {AppConfigService} from "@webbpm/base-package";
|
||||||
|
|
||||||
@Injectable({providedIn: 'root'})
|
@Injectable({providedIn: 'root'})
|
||||||
|
|
@ -14,7 +12,7 @@ export class AuthenticationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkAuthentication(): Promise<any>{
|
checkAuthentication(): Promise<any>{
|
||||||
return this.appConfigService.load().then(value => this.http.get<any>("version").toPromise())
|
return this.appConfigService.load().then(() => this.http.get<any>("version").toPromise())
|
||||||
}
|
}
|
||||||
|
|
||||||
logout(): Promise<string> {
|
logout(): Promise<string> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue