Skip to content

Commit 542988b

Browse files
committed
Round workout energy burned and duration to integer
1 parent 39d7f06 commit 542988b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/datastream.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ async function uploadWorkoutHistory(token: string | undefined, workouts: Workout
6666
start: r.startDate,
6767
finish: r.endDate,
6868
code: r.code,
69-
duration: r.duration,
70-
energy: r.activeEnergyBurned,
69+
duration: r.duration ? Math.round(r.duration) : undefined,
70+
energy: r.activeEnergyBurned ? Math.round(r.activeEnergyBurned) : undefined,
7171
})),
7272
}),
7373
});

0 commit comments

Comments
 (0)