update method name

This commit is contained in:
Tykayn 2021-05-21 13:10:04 +02:00 committed by tykayn
parent eb6a046fa1
commit 8f108a1bdf

View File

@ -30,11 +30,11 @@ export class UserService {
public async getUserPolls(): Promise<void> {
const currentUser: Owner = this._user.getValue();
currentUser.polls = await this.apiService.getPollsUrlsByUserEmail(currentUser.email);
currentUser.polls = await this.apiService.findMyPollsByEmail(currentUser.email);
this.updateUser(currentUser);
}
public async sendEmailToUserTheListOfItsPolls(): Promise<void> {
await this.apiService.sendEmailToUserOfItsPollsList(this._user.getValue().email);
await this.apiService.findMyPollsByEmail(this._user.getValue().email);
}
}