File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/main/java/upc/edu/gessi/repo/service Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11package upc .edu .gessi .repo .service ;
22
33import upc .edu .gessi .repo .dto .Review .ReviewDTO ;
4- import upc .edu .gessi .repo .dto .Review .ReviewFeatureDTO ;
4+ import upc .edu .gessi .repo .dto .Review .ReviewFeatureResponseDTO ;
55import upc .edu .gessi .repo .exception .Reviews .NoReviewsFoundException ;
66
77import java .util .List ;
@@ -15,6 +15,6 @@ public interface ReviewService extends CrudService<ReviewDTO> {
1515
1616 List <ReviewDTO > getByFeature (String feature );
1717
18- List <ReviewFeatureDTO > getByFeatures ( List <String > features ) throws NoReviewsFoundException ;
18+ List <ReviewFeatureResponseDTO > getByAppIdAndFeatures ( String appId , List <String > features ) throws NoReviewsFoundException ;
1919
2020}
Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ public List<ReviewDTO> getByFeature(String feature) {
117117 }
118118
119119 @ Override
120- public List <ReviewFeatureDTO > getByFeatures (List <String > features ) throws NoReviewsFoundException {
121- return ((ReviewRepository ) useRepository (ReviewRepository .class )).findAllByFeatures (features );
120+ public List <ReviewFeatureResponseDTO > getByAppIdAndFeatures (String appId ,
121+ List <String > features ) throws NoReviewsFoundException {
122+ return ((ReviewRepository ) useRepository (ReviewRepository .class ))
123+ .findAllByAppIdAndFeatures (appId , features );
122124 }
123125}
You can’t perform that action at this time.
0 commit comments