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

@ -46,6 +46,7 @@ public class ReviewController : BaseApiController
.WithBody(dto.Body)
.WithSeriesId(dto.SeriesId)
.WithTagline(string.Empty)
.WithRating(dto.Rating)
.Build();
if (rating.Id == 0)
@ -83,6 +84,7 @@ public class ReviewController : BaseApiController
.WithSeriesId(dto.SeriesId)
.WithVolumeId(chapter.VolumeId)
.WithChapterId(chapter.Id)
.WithRating(dto.Rating)
.WithReview(dto.Body)
.Build();