Quick scan over GH diff fixes
This commit is contained in:
parent
184cf46533
commit
41faa30e6f
3 changed files with 2 additions and 7 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue