[+] Counter measure

This commit is contained in:
Azalea
2024-04-03 08:08:02 -04:00
parent 501bf06ada
commit 355c9e2a3d
7 changed files with 25 additions and 11 deletions

View File

@@ -125,7 +125,7 @@ open class UserDataEntity : BaseEntity() {
interface GenericUserDataRepo<T : IUserData> : JpaRepository<T, Long> {
fun findByCard(card: Card): T?
fun findByCard_ExtId(extId: Long): Optional<T>
@Query("select count(*) from #{#entityName} where playerRating > :rating")
@Query("select count(*) from #{#entityName} e where e.playerRating > :rating and e.card.rankingBanned = false")
fun getRanking(rating: Int): Long
}