Allow updating rating in review modal

This commit is contained in:
Amelia 2025-04-25 23:59:15 +02:00
parent 2487eb97e1
commit 114ee4f09b
No known key found for this signature in database
GPG key ID: D6D0ECE365407EAA
7 changed files with 23 additions and 6 deletions

View file

@ -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});
}