Update TamagotchiService.java
This commit is contained in:
parent
a58b03aa33
commit
d179e02eee
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