FIX: Schedule/set/{id}/zenith

This commit is contained in:
Patrick Haßel 2022-10-25 11:31:00 +02:00
parent af62576e14
commit ccf8d7543c
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ public class DemoDataService {
scheduleEntryController.setEnabled(id, enabled);
scheduleEntryController.setType(id, type.name());
if (zenith != null) {
scheduleEntryController.setZenith(id, zenith.degrees().doubleValue());
scheduleEntryController.setZenith(id, zenith.degrees() + "");
}
scheduleEntryController.setHour(id, hour);
scheduleEntryController.setMinute(id, minute);

View File

@ -72,8 +72,8 @@ public class ScheduleEntryController {
}
@PostMapping("set/{id}/zenith")
public ScheduleEntryDto setZenith(@PathVariable final long id, @RequestBody final double value) {
return scheduleEntryWriteService.set(id, ScheduleEntry::setZenith, value);
public ScheduleEntryDto setZenith(@PathVariable final long id, @RequestBody final String value) {
return scheduleEntryWriteService.set(id, ScheduleEntry::setZenith, Double.parseDouble(value));
}
@PostMapping("set/{id}/hour")