From ab27e1b386af0c64237b6cdea89621bb4bcb6f8c Mon Sep 17 00:00:00 2001 From: ospodaryk Date: Thu, 12 Oct 2023 12:55:31 +0300 Subject: [PATCH] Fixed url --- .../java/greencity/achievement/AchievementCalculation.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); } /**