Skip to content

Commit

Permalink
Method name corrected: countByCompanyId -> count
Browse files Browse the repository at this point in the history
  • Loading branch information
mikailcolak committed Oct 1, 2020
1 parent 862d890 commit 3526797
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public ResponseEntity<?> countByCompanyId(@PathVariable Long id) {
}

@GetMapping("/count")
public ResponseEntity<?> countByCompanyId() {
public ResponseEntity<?> count() {
return ResponseEntity
.ok(GenericResponse.from(repository.count()));
}
Expand Down

0 comments on commit 3526797

Please sign in to comment.