From d8829022c103729db910910ba9bd1645895b69d6 Mon Sep 17 00:00:00 2001 From: Seb Date: Sun, 18 Feb 2024 11:12:42 -0800 Subject: [PATCH] fit: log more stats for workouts --- packages/fitness/src/PostWorkout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/fitness/src/PostWorkout.js b/packages/fitness/src/PostWorkout.js index f5872b9..8ebf823 100644 --- a/packages/fitness/src/PostWorkout.js +++ b/packages/fitness/src/PostWorkout.js @@ -42,8 +42,10 @@ const workoutFromActivity = (user, activity, streams) => { return { discordId: user.discordId, - activityId: activity.id, insertedDate: new Date().toISOString(), + activityId: activity.id, + type: activity.type, + duration: activity.moving_time, name: activity.name, exp: exp ?? expFromTime(activity.moving_time), expFromHR: Boolean(exp),