refactor to setters TODO, ingredientController
This commit is contained in:
parent
4a902ead20
commit
fef20ec876
2 changed files with 5 additions and 2 deletions
|
|
@ -134,8 +134,7 @@ public class IngredientController {
|
|||
return ResponseEntity.notFound().build();
|
||||
}
|
||||
|
||||
// TODO: Refactor to use setters
|
||||
updated.id = id;
|
||||
updated.setId(id);
|
||||
Ingredient savedIngredient = ingredientRepository.save(updated);
|
||||
messagingTemplate.convertAndSend(Topics.INGREDIENTS, new CreateIngredientMessage(savedIngredient));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue