Skip to content

Commit

Permalink
Keep event priority when importing a scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Nain57 committed Sep 14, 2023
1 parent a3e59f1 commit 1c66a03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ internal class ScenarioDataSource(
completeEventEntity
.toEvent(asDomain = true)
.copy(scenarioId = Identifier(databaseId = scenarioDbId))
}
}.sortedBy { it.priority }

/* Same with the end conditions. */
val endConditions = completeScenario.endConditions.mapNotNull { endConditionEntity ->
Expand Down

0 comments on commit 1c66a03

Please sign in to comment.