Skip to content

Commit 251238d

Browse files
committed
fix: update workoutSubTypeId handling in TPWorkoutLibraryItemDTO and CreateTPWorkoutRequestDTO
1 parent 1b355f4 commit 251238d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

boot/src/main/kotlin/org/freekode/tp2intervals/infrastructure/platform/trainingpeaks/library/TPWorkoutLibraryItemDTO.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import org.freekode.tp2intervals.infrastructure.platform.trainingpeaks.workout.s
66
class TPWorkoutLibraryItemDTO(
77
exerciseLibraryItemId: String,
88
workoutTypeId: Int,
9+
workoutSubTypeId: Int,
910
itemName: String,
1011
totalTimePlanned: Double?,
1112
tssPlanned: Int?,
@@ -15,6 +16,7 @@ class TPWorkoutLibraryItemDTO(
1516
) : TPBaseWorkoutResponseDTO(
1617
exerciseLibraryItemId,
1718
workoutTypeId,
19+
workoutSubTypeId,
1820
itemName,
1921
totalTimePlanned,
2022
tssPlanned,

boot/src/main/kotlin/org/freekode/tp2intervals/infrastructure/platform/trainingpeaks/workout/CreateTPWorkoutRequestDTO.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CreateTPWorkoutRequestDTO(
88
var athleteId: String,
99
var workoutDay: LocalDate,
1010
var workoutTypeValueId: Int,
11-
var workoutSubTypeValueId: Int? = null,
11+
var workoutSubTypeValueId: Int?,
1212
var title: String,
1313
var description: String?,
1414
var totalTime: Double?,

0 commit comments

Comments
 (0)