diff --git a/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java b/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java index e7a92e86..32ef5554 100644 --- a/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java +++ b/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/EventsController.java @@ -49,7 +49,7 @@ public ResponseEntity getUpcomingEvents(@RequestBody List sportsIds) { // todo this is placeholder for frontend - it doesn't do anything yet @GetMapping("/event-history") - public EventHistoryDTO getEventsHistory(){ + public EventHistoryDTO getEventsHistory() { EventHistoryDTO eventHistoryDTO = new EventHistoryDTO(); return eventHistoryDTO; } diff --git a/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/EventHistoryDTO.java b/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/EventHistoryDTO.java index e0023b87..90b6b411 100644 --- a/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/EventHistoryDTO.java +++ b/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/EventHistoryDTO.java @@ -11,7 +11,7 @@ @NoArgsConstructor public class EventHistoryDTO { - private Integer userScore; - private Integer opponentScore; - private UserDTO opponent; + private Integer userScore; + private Integer opponentScore; + private UserDTO opponent; } diff --git a/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/UserDTO.java b/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/UserDTO.java index e5a25d26..36f20b84 100644 --- a/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/UserDTO.java +++ b/backend/sportsmatch/src/main/java/com/sportsmatch/dtos/UserDTO.java @@ -11,5 +11,5 @@ @NoArgsConstructor public class UserDTO { - private String name; + private String name; }