Skip to content

Commit

Permalink
fixed check problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Johna91 committed Apr 13, 2024
1 parent 3f03774 commit cc598ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ public void deleteEventFromDatabase(Event eventById) {
eventRepository.deleteById(eventById.getId());
}

/**
* Retrieves the event history of the logged-in user.
*
* @param pageable contains the pagination information (page, size)
* @return a list of EventHistoryDTOs representing the logged-in user's event history
*/
public List<EventHistoryDTO> getEventsHistory(final Pageable pageable) {
/**
* Retrieves the event history of the logged-in user.
*
* @param pageable contains the pagination information (page, size)
* @return a list of EventHistoryDTOs representing the logged-in user's event history$ ../gradlew clean checkStyleMain -info
*/
public List<EventHistoryDTO> getEventsHistory(final Pageable pageable) {
String loggedUserName = userService.getUserFromContext().getName();

return eventRepository.findEventsByUser(loggedUserName, LocalDateTime.now(), pageable)
Expand Down
5 changes: 4 additions & 1 deletion frontend/sportsmatch-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ function App() {
/>
<Route path="/user" element={<UserPage />}></Route>
<Route path="/user-info" element={<Wrapper child={<UserInfo />} />} />
<Route path="/host-event" element={<Wrapper child={<HostEvent/>} />}/>
<Route
path="/host-event"
element={<Wrapper child={<HostEvent />} />}
/>
</Route>
<Route path="/test" element={<Test />}>
<Route index element={<Test />} />
Expand Down
2 changes: 1 addition & 1 deletion frontend/sportsmatch-app/src/pages/AllSportsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ export const sampleSports: SportDTO[] = [
emoji: '🥎',
backgroundUImageURL: './assets/sport-component-squash.png',
},
]
]

0 comments on commit cc598ab

Please sign in to comment.