fix: remove "done" field from json serialisation

This commit is contained in:
David Guler 2022-12-09 15:27:14 +01:00
parent 59c5d4be5a
commit b3c7dd67e8
1 changed files with 3 additions and 0 deletions

View File

@ -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;
} }