diff --git a/src/main/java/io/redlink/more/data/controller/transformer/StudyTransformer.java b/src/main/java/io/redlink/more/data/controller/transformer/StudyTransformer.java index 6a158a8..7b9d3d2 100644 --- a/src/main/java/io/redlink/more/data/controller/transformer/StudyTransformer.java +++ b/src/main/java/io/redlink/more/data/controller/transformer/StudyTransformer.java @@ -35,8 +35,8 @@ public static StudyDTO toDTO(Study study) { private static StudyDTO.StudyStateEnum toStudyStateDTO(String studyState) { return switch (studyState) { case "active", "preview" -> StudyDTO.StudyStateEnum.ACTIVE; - case "closed" -> StudyDTO.StudyStateEnum.CLOSED; - default -> StudyDTO.StudyStateEnum.PAUSED; + case "paused", "paused-preview" -> StudyDTO.StudyStateEnum.PAUSED; + default -> StudyDTO.StudyStateEnum.CLOSED; }; }