Skip to content

Commit

Permalink
fix(backend): rename to selfRating
Browse files Browse the repository at this point in the history
  • Loading branch information
atakanyasar committed May 15, 2024
1 parent 7b21c16 commit 8c88605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RecipeDetailsDto {
private CuisineDto cuisine;
private DishDto dish;
private Double avgRating;
private Integer userRating;
private Integer selfRating;

private AuthorDto author;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ else if(r.getDish() != null && r.getDish().getCuisines().isEmpty()){
.cuisine(cuisineDto)
.dish(new DishDto(r.getDish().getId(), r.getDish().getName(), r.getDish().getImage()))
.avgRating(r.getAverageRating())
.userRating(userRating)
.selfRating(userRating)
.author(new AuthorDto(r.getUser().getId(), r.getUser().getFirstName() , r.getUser().getUsername(), r.getUser().getFollowing().size(), r.getUser().getFollowers().size(), r.getUser().getRecipeCount()))
.build();
}
Expand Down

0 comments on commit 8c88605

Please sign in to comment.