Update TamagotchiService.java

This commit is contained in:
Steinwagner 2019-12-11 11:43:46 +01:00
parent c123ff8ac0
commit 37e31c67b8

View file

@ -96,7 +96,7 @@ public class TamagotchiService {
if (device == null) {
return;
}
String defunctMessage = String.format("Tamagotchi %s of %s passed away", device.getOwner(), device.getOwner());
String defunctMessage = String.format("Tamagotchi %s of %s passed away", device.getId(), device.getOwner());
DefunctNotification defunctNotification = new DefunctNotification(defunctMessage);
try {
publisherService.publish(defunctNotification);