Skip to content

Commit

Permalink
Fixed widget display when multiple repos with multiple JS libraries (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgreffier authored Aug 30, 2022
1 parent 79436b3 commit fb18260
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,4 @@ public interface LibraryRepository extends JpaRepository<Library, Long>, JpaSpec
* @return The library
*/
Library findByTechnicalName(String technicalName);

/**
* Find libraries by technical names
* @param technicalNames The technical names
* @return The libraries
*/
List<Library> findByTechnicalNameIn(List<String> technicalNames);
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ public Page<Library> getAll(String search, Pageable pageable) {
return libraryRepository.findAll(new LibrarySearchSpecification(search), pageable);
}

/**
* Find libraries by technical names
* @param technicalNames The technical names
* @return The libraries
*/
@Transactional(readOnly = true)
public List<Library> findByTechnicalNameIn(List<String> technicalNames) {
return libraryRepository.findByTechnicalNameIn(technicalNames);
}

/**
* Get all libraries of a project
* @param project The project
Expand Down Expand Up @@ -109,7 +99,7 @@ public List<Library> getLibrariesByProject(Project project) {
public List<String> getLibraryTokensByProject(Project project) {
return getLibrariesByProject(project)
.stream()
.map(Library::getId)
.map(library -> library.getAsset().getId())
.map(IdUtils::encrypt)
.collect(Collectors.toList());
}
Expand Down

0 comments on commit fb18260

Please sign in to comment.