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:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user