imagePath changed
This commit is contained in:
@@ -33,13 +33,13 @@ export class UserService {
|
||||
async getAllStates(): Promise<any> {
|
||||
return await lastValueFrom(this.http.get<StatesResult[]>(`${this.apiBaseUrl}/bizmatch/user/states/all`));
|
||||
}
|
||||
async getId(email: string): Promise<string> {
|
||||
if (sessionStorage.getItem('USERID')) {
|
||||
return sessionStorage.getItem('USERID');
|
||||
} else {
|
||||
const user = await this.getByMail(email);
|
||||
sessionStorage.setItem('USERID', user.id);
|
||||
return user.id;
|
||||
}
|
||||
}
|
||||
// async getId(email: string): Promise<string> {
|
||||
// if (sessionStorage.getItem('USERID')) {
|
||||
// return sessionStorage.getItem('USERID');
|
||||
// } else {
|
||||
// const user = await this.getByMail(email);
|
||||
// sessionStorage.setItem('USERID', user.id);
|
||||
// return user.id;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user