Browse Source

bug fix: repaired assignment of states

feature/brute_force_protection
Stephan Richter 3 months ago
parent
commit
6ee5f587de
  1. 6
      core/src/main/java/de/srsoftware/umbrella/core/model/Status.java

6
core/src/main/java/de/srsoftware/umbrella/core/model/Status.java

@ -21,9 +21,9 @@ public record Status(String name, int code) implements Mappable { @@ -21,9 +21,9 @@ public record Status(String name, int code) implements Mappable {
public static Status of(int code){
return switch (code){
case 10 -> OPEN;
case 20 -> STARTED;
case 40 -> PENDING;
case 10 -> PENDING;
case 20 -> OPEN;
case 40 -> STARTED;
case 60 -> COMPLETE;
case 100 -> CANCELLED;
default -> throw new IllegalArgumentException();

Loading…
Cancel
Save