|
|
|
@ -147,7 +147,10 @@ public class ApiEndpoint extends PathHandler {
@@ -147,7 +147,10 @@ public class ApiEndpoint extends PathHandler {
|
|
|
|
|
return HttpError.of(400,"Count (count=%s) is not a number!", o); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return db.list(startDate, null, count, offset).map(res -> filterByTags(res, tags)); |
|
|
|
|
Result<LocalDateTime> end = parseDate(param.get(END)); |
|
|
|
|
var endDate = (end == null) ? null: end.optional().orElse(null); |
|
|
|
|
|
|
|
|
|
return db.list(startDate, endDate, count, offset).map(res -> filterByTags(res, tags)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Result<List<Appointment>> filterByTags(Result<List<Appointment>> res, List<String> tags) { |
|
|
|
|