Skip to content

Commit

Permalink
fix: No void type for ResponseEntity body
Browse files Browse the repository at this point in the history
* fix: No void type for ResponseEntity body

* fix: No void type for ResponseEntity body
  • Loading branch information
michaelharlow authored Oct 14, 2024
1 parent fa806a5 commit 3205f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class AccountController
{
private final AccountService accountService;

// TODO: Resolve compilation issue here
@PostMapping("/account")
public ResponseEntity<?> save(@RequestBody Account account)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class AccountService
private final AccountRepository accountRepository;

@Transactional
public void create(Account account)
public Account create(Account account)
{
accountRepository.save(account);
return accountRepository.save(account);
}

public List<Account> findAll()
Expand Down

0 comments on commit 3205f3e

Please sign in to comment.