insane amount of work done during the snow storm
This commit is contained in:
@@ -109,6 +109,19 @@ export const workoutLibraryApi = {
|
||||
comment: comment || undefined
|
||||
})
|
||||
return data
|
||||
},
|
||||
|
||||
// Schedule a library workout to a specific date
|
||||
async scheduleToCalendar(workout, scheduledDate) {
|
||||
const { data } = await api.post('/protected/workouts/schedule-template', {
|
||||
template_id: workout.id,
|
||||
template_name: workout.name,
|
||||
template_type: workout.type,
|
||||
duration: workout.duration,
|
||||
scheduled_date: scheduledDate,
|
||||
workout_data: workout.structure || null
|
||||
})
|
||||
return data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user