Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Nov 9, 2022
1 parent bcd1030 commit afaa437
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions captcha/src/main/kotlin/db/CaptchaChatsSettingsRepo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CaptchaChatsSettingsRepo(

override val primaryKey = PrimaryKey(chatIdColumn)

override val selectByIds: SqlExpressionBuilder.(List<ChatId>) -> Op<Boolean> = {
override val selectByIds: ISqlExpressionBuilder.(List<ChatId>) -> Op<Boolean> = {
chatIdColumn.inList(it.map { it.chatId })
}

Expand Down Expand Up @@ -65,7 +65,7 @@ class CaptchaChatsSettingsRepo(
casEnabled = get(casColumn)
)

override val selectById: SqlExpressionBuilder.(ChatId) -> Op<Boolean> = { chatIdColumn.eq(it.chatId) }
override val selectById: ISqlExpressionBuilder.(ChatId) -> Op<Boolean> = { chatIdColumn.eq(it.chatId) }
override val ResultRow.asObject: ChatSettings
get() = ChatSettings(
chatId = get(chatIdColumn).toChatId(),
Expand Down
1 change: 1 addition & 0 deletions welcome/src/main/kotlin/db/WelcomeTable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import dev.inmo.micro_utils.repos.exposed.initTable
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.plagubot.plugins.welcome.model.ChatSettings
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
import org.jetbrains.exposed.sql.transactions.transaction

internal class WelcomeTable(
Expand Down

0 comments on commit afaa437

Please sign in to comment.