Skip to content

Commit

Permalink
ToolRepository method name changes after property renaming in Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-odysseus committed Dec 17, 2024
1 parent 1e36b5c commit 4fd6380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/ohdsi/webapi/tool/ToolRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

@Repository
public interface ToolRepository extends JpaRepository<Tool, Integer> {
List<Tool> findAllByIsEnabled(boolean isEnabled);
List<Tool> findAllByEnabled(boolean enabled);
}
2 changes: 1 addition & 1 deletion src/main/java/org/ohdsi/webapi/tool/ToolServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ToolServiceImpl(ToolRepository toolRepository) {

@Override
public List<ToolDTO> getTools() {
List<Tool> tools = (isAdmin() || canManageTools()) ? toolRepository.findAll() : toolRepository.findAllByIsEnabled(true);
List<Tool> tools = (isAdmin() || canManageTools()) ? toolRepository.findAll() : toolRepository.findAllByEnabled(true);
return tools.stream()
.map(this::toDTO).collect(Collectors.toList());
}
Expand Down

0 comments on commit 4fd6380

Please sign in to comment.