Skip to content

Commit

Permalink
Fix upload workouts url
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryashutov committed Nov 24, 2023
1 parent 74731b0 commit 282decd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/datastream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function attachActivityHistoryDataStream() {
}

export async function uploadWorkoutHistory(token: string | undefined, workouts: Workout[]) {
return fetchService(DATASTREAM_API_URL, {
return fetchService(`${DATASTREAM_API_URL}/records`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 282decd

Please sign in to comment.