Fixed RecipeInfoView getIsPublic naming.

This commit is contained in:
Jesse Brault 2024-07-30 14:13:18 -05:00
parent faf4434b7a
commit 23d6f147c4
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ public class RecipeServiceImpl implements RecipeService {
view.setSlug(entity.getSlug()); view.setSlug(entity.getSlug());
view.setTitle(entity.getTitle()); view.setTitle(entity.getTitle());
view.setOwnerUsername(entity.getOwner().getUsername()); view.setOwnerUsername(entity.getOwner().getUsername());
view.setPublic(entity.isPublic()); view.setIsPublic(entity.isPublic());
view.setStarCount(this.getStarCount(entity)); view.setStarCount(this.getStarCount(entity));
if (entity.getMainImage() != null) { if (entity.getMainImage() != null) {
view.setMainImage(this.imageService.toImageView(entity.getMainImage())); view.setMainImage(this.imageService.toImageView(entity.getMainImage()));

View File

@ -56,12 +56,12 @@ public final class RecipeInfoView {
this.ownerUsername = ownerUsername; this.ownerUsername = ownerUsername;
} }
public boolean isPublic() { public boolean getIsPublic() {
return this.isPublic; return this.isPublic;
} }
public void setPublic(boolean aPublic) { public void setIsPublic(boolean isPublic) {
isPublic = aPublic; this.isPublic = isPublic;
} }
public int getStarCount() { public int getStarCount() {