When a new workout is created, calculate and persist distance, calories, average, min, max rpm|bpm etc (Need to test this)

This commit is contained in:
Peter Stockings
2023-07-29 20:39:34 +10:00
parent 2e37b1e22a
commit 27d3fbf681
2 changed files with 45 additions and 7 deletions

View File

@@ -221,7 +221,7 @@
Accept: "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({ workout: workoutData, heart_rate: heartRateData }),
body: JSON.stringify({ cadence_readings: workoutData, heart_rate_readings: heartRateData }),
}).then(res => res.json())
.then(res => {
workoutData = [];