Skip to content

Commit

Permalink
Fix ban state message
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Feb 7, 2024
1 parent c60469b commit 0b8404a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import net.perfectdreams.loritta.helper.utils.Constants
import net.perfectdreams.loritta.morenitta.interactions.commands.*
import net.perfectdreams.loritta.morenitta.interactions.commands.options.ApplicationCommandOptions
import org.jetbrains.exposed.sql.SortOrder
import org.jetbrains.exposed.sql.and
import org.jetbrains.exposed.sql.select
import org.jetbrains.exposed.sql.transactions.transaction
import java.time.Instant
Expand Down Expand Up @@ -213,7 +214,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap

val banStates = transaction(helper.databases.lorittaDatabase) {
BannedUsers.select {
BannedUsers.userId inList foundIds
BannedUsers.userId inList foundIds and (BannedUsers.valid eq true)
}.toList()
}

Expand Down Expand Up @@ -333,7 +334,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap

val banStates = transaction(helper.databases.lorittaDatabase) {
BannedUsers.select {
BannedUsers.userId inList foundIds
BannedUsers.userId inList foundIds and (BannedUsers.valid eq true)
}.toList()
}

Expand Down

0 comments on commit 0b8404a

Please sign in to comment.