FIX: Schedule/set/{id}/zenith
This commit is contained in:
parent
af62576e14
commit
ccf8d7543c
@ -81,7 +81,7 @@ public class DemoDataService {
|
|||||||
scheduleEntryController.setEnabled(id, enabled);
|
scheduleEntryController.setEnabled(id, enabled);
|
||||||
scheduleEntryController.setType(id, type.name());
|
scheduleEntryController.setType(id, type.name());
|
||||||
if (zenith != null) {
|
if (zenith != null) {
|
||||||
scheduleEntryController.setZenith(id, zenith.degrees().doubleValue());
|
scheduleEntryController.setZenith(id, zenith.degrees() + "");
|
||||||
}
|
}
|
||||||
scheduleEntryController.setHour(id, hour);
|
scheduleEntryController.setHour(id, hour);
|
||||||
scheduleEntryController.setMinute(id, minute);
|
scheduleEntryController.setMinute(id, minute);
|
||||||
|
|||||||
@ -72,8 +72,8 @@ public class ScheduleEntryController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("set/{id}/zenith")
|
@PostMapping("set/{id}/zenith")
|
||||||
public ScheduleEntryDto setZenith(@PathVariable final long id, @RequestBody final double value) {
|
public ScheduleEntryDto setZenith(@PathVariable final long id, @RequestBody final String value) {
|
||||||
return scheduleEntryWriteService.set(id, ScheduleEntry::setZenith, value);
|
return scheduleEntryWriteService.set(id, ScheduleEntry::setZenith, Double.parseDouble(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("set/{id}/hour")
|
@PostMapping("set/{id}/hour")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user