diff --git a/R-Dash/redux/actions/sessions.ts b/R-Dash/redux/actions/sessions.ts index 0e143d7..e7d3704 100644 --- a/R-Dash/redux/actions/sessions.ts +++ b/R-Dash/redux/actions/sessions.ts @@ -28,10 +28,10 @@ export const addXlsFile = async (file: File) => { } }; -export const getSessionsList = (user: User) => { +export const getSessionsList = () => { return async dispatch => { try { - const sessionsPromise = await fetch('https://r-dash.azurewebsites.net/Sessions/'+user.getUsername); + const sessionsPromise = await fetch('https://r-dash.azurewebsites.net/FullSession'); const sessionsListJson = await sessionsPromise.json(); const sessionsList: Session[] = sessionsListJson.map(elt => { const laps: Lap[] = elt.laps.map(lap => {