fix: remove "done" field from json serialisation
This commit is contained in:
parent
59c5d4be5a
commit
b3c7dd67e8
|
@ -1,5 +1,7 @@
|
||||||
package ch.zhaw.gartenverwaltung.types;
|
package ch.zhaw.gartenverwaltung.types;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@ -121,6 +123,7 @@ public class Task {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public boolean isDone(){
|
public boolean isDone(){
|
||||||
return nextExecution == null;
|
return nextExecution == null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue