#27 gardenplanmodel bugfixed cropid

This commit is contained in:
Gian-Andrea Hutter
2022-11-04 15:32:15 +01:00
parent d45b8e116e
commit 2361afd537
3 changed files with 9 additions and 6 deletions
@@ -159,5 +159,8 @@ public class JsonTaskDatabase implements TaskDatabase{
(res, task) -> res.put(task.getId(), task),
(existing, replacement) -> {});
}
Long maxId = taskMap.isEmpty() ? 0L : Collections.max(taskMap.keySet());
idProvider = new IdProvider(maxId);
}
}