Skip to content

Commit

Permalink
#135: Align state-translation with study-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-fra committed Jun 3, 2024
1 parent 5cf8704 commit 52e6ffb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

Expand Down

0 comments on commit 52e6ffb

Please sign in to comment.