Skip to content

Commit

Permalink
#2426 Remove unneeded function
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalizer committed Oct 16, 2023
1 parent e167e47 commit dd0a467
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,4 @@ interface ExpiredUserAchievementRepo extends CrudRepository<ExpiredUserAchieveme
@Param("userId") String userId,
@Param("skillNameFilter") String skillNameFilter, PageRequest pageRequest)

@Query(value = '''
SELECT count(eua.userId)
FROM ExpiredUserAchievement eua, SkillDef skill
WHERE eua.projectId = :projectId AND eua.skillId = skill.skillId AND eua.projectId = skill.projectId
AND(:userId is null OR lower(eua.userId) like lower(concat('%', :userId, '%')))
AND(:skillNameFilter is null OR lower(skill.name) like lower(concat('%', :skillNameFilter, '%')))
''')
long countExpiredAchievements(@Param("projectId") String projectId,
@Param("userId") String userId,
@Param("skillNameFilter") String skillNameFilter)

}

0 comments on commit dd0a467

Please sign in to comment.