Skip to content

Commit

Permalink
Fixed #3770
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Oct 10, 2020
1 parent 0afe5de commit d54471b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ export class MovieDetailsComponent {
}

public async approve() {
this.movie.approved = true;
const result = await this.requestService.approveMovie({ id: this.movieRequest.id }).toPromise();
if (result.result) {
this.movie.approved = false;
this.messageService.send("Successfully Approved", "Ok");
} else {
this.movie.approved = false;
this.messageService.send(result.errorMessage, "Ok");
}
}
Expand Down

0 comments on commit d54471b

Please sign in to comment.