Allow updating rating in review modal
This commit is contained in:
parent
2487eb97e1
commit
114ee4f09b
7 changed files with 23 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ export class ChapterService {
|
|||
return this.httpClient.get<Array<UserReview>>(this.baseUrl + 'chapter/review?chapterId='+chapterId);
|
||||
}
|
||||
|
||||
updateChapterReview(seriesId: number, chapterId: number, body: string) {
|
||||
updateChapterReview(seriesId: number, chapterId: number, body: string, rating: number) {
|
||||
return this.httpClient.post<UserReview>(this.baseUrl + 'review/chapter/'+chapterId, {seriesId, body});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue