Skip to content

Commit

Permalink
fixed bytes step image
Browse files Browse the repository at this point in the history
  • Loading branch information
lordkener committed Apr 14, 2020
1 parent eb8577c commit 01331ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ public Recipe postRecipe(User user, Recipe recipe, String ingredientsString, Str
Step step_n = new Step(recipe, i, steps);
if(listOfBools.get(j).equalsIgnoreCase("1")){
imageService.saveImage("recipes/steps/"+recipe.getId(), j+2, allImages[j]);
step_n.setImage(true);
step_n.setImage(true);
step_n.setStepImage(allImages[j].getBytes());
}else{
step_n.setImage(false);
}
Expand Down

0 comments on commit 01331ff

Please sign in to comment.