diff --git a/service/src/main/java/greencity/achievement/AchievementCalculation.java b/service/src/main/java/greencity/achievement/AchievementCalculation.java index 624a42ffbb..6e8408d3f5 100644 --- a/service/src/main/java/greencity/achievement/AchievementCalculation.java +++ b/service/src/main/java/greencity/achievement/AchievementCalculation.java @@ -27,7 +27,6 @@ @Component public class AchievementCalculation { private UserActionService userActionService; - private AchievementService achievementService; private UserService userService; private AchievementCategoryService achievementCategoryService; @@ -83,7 +82,7 @@ public void calculateAchievement(Long userId, AchievementCategoryType category, checkAchievements(achievementCategoryVO.getId(), count, userId, achievementAction); messagingTemplate - .convertAndSend("/topic/" + userId + "/notifications", category.toString()); + .convertAndSend("/topic/notifications", category.toString()); } /**