Topic.enabled filter was missing

This commit is contained in:
Patrick Haßel 2025-11-18 08:33:28 +01:00
parent 98c08201f3
commit a96cf9d62c

View File

@ -10,7 +10,7 @@ public interface TopicRepository extends ListCrudRepository<Topic, Long> {
boolean existsByName(@NonNull String name);
@Query("select new de.ph87.data.topic.TopicDto(t) from Topic t where t.name = :name")
@Query("select new de.ph87.data.topic.TopicDto(t) from Topic t where t.name = :name and t.enabled")
Optional<TopicDto> findDtoByEnabledTrueAndName(@NonNull String name);
}