Merge branch 'feature/device-service' of https://github.com/jazzm0/microservices-demo.git into feature/device-service

This commit is contained in:
Elisa Stelling 2019-12-10 18:47:43 +01:00
commit 98d4dc0cc6

View file

@ -52,7 +52,9 @@ public class TamagotchiService {
}
public void takeCare(String deviceId, Care care) {
Device device = deviceRegistry.get(deviceId);
device.changeHealthScore(care.getFeed());
device.changeHealthScore(care.getPet());
}
@Scheduled(fixedDelay = DEVICE_EVENT_PROCESSOR_SCHEDULE)