Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinuy committed Nov 19, 2024
1 parent 8b9b737 commit 59a5a56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/main/java/springweb/backend/ClientService.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public Client addGroceryProductToClient(GroceryProduct groceryProduct, String id
}

public Client addClient(Client clientDto) {
Client client = new Client(clientDto.id(), clientDto.shoppingList());
return clientRepository.save(client);
return null;
}

public Client updateClient(String id, Client clientDto) {
Expand Down

0 comments on commit 59a5a56

Please sign in to comment.