mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
remove promise bug
This commit is contained in:
@@ -129,8 +129,8 @@ export class AuthService {
|
||||
|
||||
// alert('wsLogin')
|
||||
|
||||
}).catch((message) => {
|
||||
// alert('ws login failed')
|
||||
}).catch((error) => {
|
||||
console.error(error)
|
||||
})
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ export class AuthService {
|
||||
|
||||
return true
|
||||
} catch(e) {
|
||||
|
||||
console.error('BeforesendAtachment', e)
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ export class AuthService {
|
||||
return true
|
||||
|
||||
} catch(e) {
|
||||
|
||||
console.error('BeforesendAtachment', e)
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -231,6 +231,8 @@ export class AuthService {
|
||||
getUserData() {
|
||||
this.storageService.get(AuthConnstants.AUTH).then(res=>{
|
||||
this.userData$.next(res);
|
||||
}).catch((error) => {
|
||||
console.error('storage getuserdata',error)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user