Merge branch 'fix' into 'dev'
fix See merge request sa4-2020/the-sanmarinoes/backend!102
This commit is contained in:
commit
74fee11814
2 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,8 @@ public class ThermostatController {
|
||||||
newT.setUseExternalSensors(t.isUseExternalSensors());
|
newT.setUseExternalSensors(t.isUseExternalSensors());
|
||||||
newT.setOn(t.isTurnOn());
|
newT.setOn(t.isTurnOn());
|
||||||
|
|
||||||
newT = deviceService.saveAsOwner(newT, principal.getName());
|
|
||||||
thermostatService.populateMeasuredTemperature(newT);
|
thermostatService.populateMeasuredTemperature(newT);
|
||||||
|
newT = deviceService.saveAsOwner(newT, principal.getName());
|
||||||
return newT;
|
return newT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,6 @@ public class ThermostatService {
|
||||||
populateMeasuredTemperature(u);
|
populateMeasuredTemperature(u);
|
||||||
t = Optional.of(u);
|
t = Optional.of(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue