#23 bugfix adjust task

This commit is contained in:
Gian-Andrea Hutter
2022-11-29 21:55:42 +01:00
parent 028bc0240d
commit 5e42cae290
2 changed files with 4 additions and 4 deletions
@@ -86,7 +86,7 @@ public class WeatherGradenTaskPlanner {
// vom startdatum abhängig,
private void adjustNextExecutionOfWateringTask(List<Task> cropTaskList){
for(Task task : cropTaskList){
if(task.getName().equals("watering task")){
if(task.getName().equals("water plant")){
task.setNextExecution(task.getNextExecution().plusDays(task.getInterval().orElse(1)));
}
}