bug fix: repaired assignment of states

This commit is contained in:
2025-08-14 23:06:48 +02:00
parent 3b7c292e32
commit 6ee5f587de

View File

@@ -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();