Skip to content

Commit

Permalink
Whoops, fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Oct 22, 2024
1 parent 372ba20 commit 35f4b3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CheckDupeClientIds(val helper: LorittaHelper) : RunnableCoroutine {
val alreadyChecked = mutableSetOf<Long>()

for (user in dailiesGotInLast24Hours) {
if (user[Dailies.receivedById] !in alreadyChecked)
if (user[Dailies.receivedById] in alreadyChecked)
continue

val bannedUsersAssociatedWithThisUser = clientIdsThatAreBanned.filter { it[BrowserFingerprints.clientId] == user[BrowserFingerprints.clientId] }
Expand All @@ -79,7 +79,7 @@ class CheckDupeClientIds(val helper: LorittaHelper) : RunnableCoroutine {
usersToBeBanned.add(
BannedUser(
user[Dailies.receivedById],
bannedUsersAssociatedWithThisUser.map { it[BannedUsers.userId] },
bannedUsersAssociatedWithThisUser.map { it[BannedUsers.userId] }.distinct(),
user[BrowserFingerprints.clientId],
bannedUsersAssociatedWithThisUser.minBy { it[BannedUsers.bannedAt] }[BannedUsers.reason],
user[Profiles.money]
Expand Down

0 comments on commit 35f4b3f

Please sign in to comment.