@runnerpro/backend 1.6.12 → 1.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,7 +252,7 @@ const scheduleWorkoutGarmin = (userid, workout) => {
252
252
  userid,
253
253
  httpMethod: 'POST',
254
254
  params: {
255
- workoutId: workout.workoutIdGarmin,
255
+ workoutId: workout.workoutGarminId,
256
256
  date: workout.date,
257
257
  },
258
258
  });
@@ -261,7 +261,7 @@ const scheduleWorkoutGarmin = (userid, workout) => {
261
261
  userid,
262
262
  httpMethod: 'POST',
263
263
  params: {
264
- workoutId: workout.workoutIdGarmin,
264
+ workoutId: workout.workoutGarminId,
265
265
  date: workout.date,
266
266
  },
267
267
  });
@@ -34,7 +34,7 @@ const sendWorkoutToWatch = (clientId, workoutId) => __awaiter(void 0, void 0, vo
34
34
  // Llamar a la función que envía el workout al Garmin
35
35
  const { workoutGarminId } = yield (0, garmin_1.createWorkoutGarmin)(clientId, workout);
36
36
  console.log({ workoutGarminId });
37
- yield (0, garmin_1.scheduleWorkoutGarmin)(clientId, { date: (0, moment_1.default)(workout.date).format('YYYY-MM-DD'), workoutId: workoutGarminId });
37
+ yield (0, garmin_1.scheduleWorkoutGarmin)(clientId, { date: (0, moment_1.default)(workout.date).format('YYYY-MM-DD'), workoutGarminId });
38
38
  return { success: true };
39
39
  });
40
40
  exports.sendWorkoutToWatch = sendWorkoutToWatch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.6.12",
3
+ "version": "1.6.13",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"