From ed1fe617a05718396631b7902ac63077e0d062b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fo=CC=88mpe?= Date: Wed, 6 Jun 2018 10:24:52 +0200 Subject: [PATCH] Workout with multiple repeats fix #10 --- src/main/scala/com.github.mgifos.workouts/model/Step.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com.github.mgifos.workouts/model/Step.scala b/src/main/scala/com.github.mgifos.workouts/model/Step.scala index c639d3b..5c64943 100644 --- a/src/main/scala/com.github.mgifos.workouts/model/Step.scala +++ b/src/main/scala/com.github.mgifos.workouts/model/Step.scala @@ -39,9 +39,9 @@ case class RepeatStep(count: Int, steps: Seq[Step]) extends Step { override def json(order: Int) = Json.obj( "stepId" -> JsNull, - "stepOrder" -> 2, + "stepOrder" -> order, "stepType" -> Json.obj( - "stepTypeId" -> 6, + "stepTypeId" -> typeId, "stepTypeKey" -> "repeat"), "numberOfIterations" -> count, "smartRepeat" -> false,