Quick scan over GH diff fixes

This commit is contained in:
Amelia 2025-04-28 17:36:53 +02:00
parent 184cf46533
commit 41faa30e6f
No known key found for this signature in database
GPG key ID: D6D0ECE365407EAA
3 changed files with 2 additions and 7 deletions

View file

@ -36,7 +36,7 @@ public class RatingController : BaseApiController
[HttpPost]
public async Task<ActionResult> UpdateRating(UpdateRatingDto updateRating)
{
var user = await _unitOfWork.UserRepository.GetUserByIdAsync(User.GetUserId(), AppUserIncludes.Ratings);
var user = await _unitOfWork.UserRepository.GetUserByIdAsync(User.GetUserId(), AppUserIncludes.Ratings | AppUserIncludes.ChapterRatings);
if (user == null) throw new UnauthorizedAccessException();
if (await _ratingService.UpdateRating(user, updateRating))