Merge branch 'tests' into 'dev'

Fix bug

See merge request sa4-2020/the-sanmarinoes/backend!209
This commit is contained in:
Claudio Maggioni 2020-05-27 22:39:40 +02:00
commit 4e9d77c794

View file

@ -19,9 +19,6 @@ import org.springframework.stereotype.Component;
*/
@Component
public class UpdateTasks {
private final SensorRepository sensorRepository;
private final MotionSensorRepository motionSensorRepository;
private final SmartPlugRepository smartPlugRepository;
@ -36,14 +33,12 @@ public class UpdateTasks {
@Autowired
public UpdateTasks(
SensorRepository sensorRepository,
MotionSensorRepository motionSensorRepository,
SmartPlugRepository smartPlugRepository,
SensorService sensorService,
ThermostatService thermostatService,
MotionSensorService motionSensorService,
SensorSocketEndpoint sensorSocketEndpoint) {
this.sensorRepository = sensorRepository;
this.motionSensorRepository = motionSensorRepository;
this.smartPlugRepository = smartPlugRepository;
this.sensorService = sensorService;