Topic.enabled filter was missing
This commit is contained in:
parent
98c08201f3
commit
a96cf9d62c
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user