Merge branch 'feature/device-service' of https://github.com/jazzm0/microservices-demo.git into feature/device-service
This commit is contained in:
commit
98d4dc0cc6
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue