Skip to content

Commit 10e9cd4

Browse files
committed
fix query for nonEmptyApps
1 parent 9fb4e8d commit 10e9cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest-backend/src/main/java/com/sap/psr/vulas/backend/repo/ApplicationRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public interface ApplicationRepository extends CrudRepository<Application, Long>
7171
+ " where space3_.space_token= :spaceToken and (extract(epoch from applicatio0_.last_vuln_change) > :timestamp OR extract(epoch from applicatio0_.last_scan) > :timestamp) and applicatio0_.id in (select application_id from app_constructs) "
7272
+ " order by applicatio0_.mvn_group, applicatio0_.artifact, applicatio0_.version )"
7373
+ " UNION "
74-
+ " (select distinct applicatio0_.id, applicatio0_.artifact, applicatio0_.created_at, "
74+
+ " (select distinct applicatio0_.id, applicatio0_.artifact, applicatio0_.created_at, applicatio0_.modified_at, applicatio0_.last_vuln_change, applicatio0_.last_scan, "
7575
+ " applicatio0_.mvn_group, applicatio0_.space, applicatio0_.version "
7676
+ " from app applicatio0_ inner join app_dependency dependenci1_ on applicatio0_.id=dependenci1_.app "
7777
+ " inner join space space2_ on applicatio0_.space=space2_.id where space2_.space_token= :spaceToken and (extract(epoch from applicatio0_.last_vuln_change) > :timestamp OR extract(epoch from applicatio0_.last_scan) > :timestamp)"

0 commit comments

Comments
 (0)