fix
This commit is contained in:
parent
d62fe005a8
commit
71302933e6
2 changed files with 2 additions and 6 deletions
|
@ -64,8 +64,8 @@ public class SensorController {
|
||||||
@PutMapping("/{id}/simulation")
|
@PutMapping("/{id}/simulation")
|
||||||
public Sensor updateSimulation(
|
public Sensor updateSimulation(
|
||||||
@PathVariable("id") Long sensorId,
|
@PathVariable("id") Long sensorId,
|
||||||
@RequestParam("error") BigDecimal error,
|
@RequestBody BigDecimal error,
|
||||||
@RequestParam("typical") BigDecimal typical,
|
@RequestBody BigDecimal typical,
|
||||||
final Principal principal)
|
final Principal principal)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return sensorService.updateSimulationFromSensor(
|
return sensorService.updateSimulationFromSensor(
|
||||||
|
|
|
@ -20,10 +20,6 @@ public class SensorSaveRequest {
|
||||||
|
|
||||||
@NotNull private BigDecimal value;
|
@NotNull private BigDecimal value;
|
||||||
|
|
||||||
private BigDecimal error;
|
|
||||||
|
|
||||||
private BigDecimal typical;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The room this device belongs in, as a foreign key id. To use when updating and inserting from
|
* The room this device belongs in, as a foreign key id. To use when updating and inserting from
|
||||||
* a REST call.
|
* a REST call.
|
||||||
|
|
Loading…
Reference in a new issue