update dependencies and fix admins cache api getting

This commit is contained in:
InsanusMokrassar 2022-09-19 01:40:59 +06:00
parent 772f05729e
commit 27dffce0d2
2 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ kotlin.incremental=true
kotlin_version=1.7.10
kotlin_coroutines_version=1.6.4
kotlin_serialisation_runtime_version=1.4.0
plagubot_version=2.3.1
plagubot_version=2.3.2
micro_utils_version=0.12.11
micro_utils_version=0.12.13
tgbotapi_libraries_version=0.5.3
commands_version=0.3.3

View File

@ -125,7 +125,7 @@ class CaptchaBotPlugin : Plugin {
override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) {
val repo: CaptchaChatsSettingsRepo by koin.inject()
val adminsAPI = koin.adminsPlugin ?.adminsAPI(koin.get())
val adminsAPI = koin.get<AdminsCacheAPI>()
suspend fun Chat.settings() = repo.getById(id) ?: repo.create(ChatSettings(id)).first()