Skip to content

Commit

Permalink
fix: Updated TopicRepository.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladik-gif committed Sep 24, 2024
1 parent 41615b2 commit a2a2a77
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.UUID;

import com.chat.yourway.model.TopicScope;
import jakarta.validation.constraints.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
Expand Down Expand Up @@ -35,8 +34,7 @@ public interface TopicRepository extends JpaRepository<Topic, UUID> {
Optional<Topic> findByName(@Param("name") String name);

@Query(value = "SELECT t FROM Topic t Where t.id = :id and t.scope != 'DELETED'")
@Override
Optional<Topic> findById(UUID id);
Optional<Topic> findById(@Param("id") UUID id);

@Query(value = """
SELECT t FROM Topic t JOIN FETCH t.topicSubscribers s
Expand Down

0 comments on commit a2a2a77

Please sign in to comment.