#27 gardenplanmodel bugfixed cropid
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user