From 7dfc7e0482b06c30e7327e732691aa1494e87474 Mon Sep 17 00:00:00 2001 From: Alexandre GLENAT Date: Thu, 23 Mar 2023 15:04:26 +0100 Subject: [PATCH] tien --- R-Dash/redux/actions/sessions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => {