From 277f34a27e96cb9cd5358cc38443f62b98964cf7 Mon Sep 17 00:00:00 2001 From: Vladik-gif Date: Fri, 27 Sep 2024 11:40:47 +0300 Subject: [PATCH] fix: Updated TopicService.delete() --- src/main/java/com/chat/yourway/service/TopicService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chat/yourway/service/TopicService.java b/src/main/java/com/chat/yourway/service/TopicService.java index c12ba7d..80d0e04 100644 --- a/src/main/java/com/chat/yourway/service/TopicService.java +++ b/src/main/java/com/chat/yourway/service/TopicService.java @@ -128,7 +128,7 @@ public void delete(UUID id) { contactService.save(subscriber); }); topic.setScope(TopicScope.DELETED); - topic.setTopicSubscribers(Collections.EMPTY_LIST); + topic.setTopicSubscribers(Collections.emptyList()); topicRepository.save(topic); log.trace("Deleted Topic: {}", id); }