mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-12-29 03:57:21 +00:00
updates
This commit is contained in:
parent
a721981e40
commit
91cd897717
@ -1,7 +1,6 @@
|
||||
package dev.inmo.plagubot.plugins.captcha.db
|
||||
|
||||
import dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo
|
||||
import dev.inmo.micro_utils.repos.exposed.ExposedCRUDRepo
|
||||
import dev.inmo.micro_utils.repos.exposed.*
|
||||
import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo
|
||||
import dev.inmo.plagubot.plugins.captcha.settings.*
|
||||
import dev.inmo.tgbotapi.types.ChatId
|
||||
@ -17,7 +16,7 @@ class CaptchaChatsSettingsRepo(
|
||||
) {
|
||||
private val chatIdColumn = long("chatId")
|
||||
private val checkTimeSecondsColumn = integer("checkTime")
|
||||
private val solveCaptchaTextColumn = text("checkTime")
|
||||
private val solveCaptchaTextColumn = text("solveCaptchaText")
|
||||
|
||||
override val primaryKey = PrimaryKey(chatIdColumn)
|
||||
|
||||
@ -53,4 +52,8 @@ class CaptchaChatsSettingsRepo(
|
||||
get(checkTimeSecondsColumn),
|
||||
get(solveCaptchaTextColumn)
|
||||
)
|
||||
|
||||
init {
|
||||
initTable()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user