From 15c0f9979a95c7d8c53916670829d1e80a47f16c Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 11 Jun 2022 19:45:29 +0600 Subject: [PATCH] fixes related to the new microutils --- .../inmo/tgbotapi/libraries/cache/admins/AdminsCacheAPI.kt | 4 ++-- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cache/admins/micro_utils/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsCacheAPI.kt b/cache/admins/micro_utils/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsCacheAPI.kt index 56b7cfa..569e4a0 100644 --- a/cache/admins/micro_utils/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsCacheAPI.kt +++ b/cache/admins/micro_utils/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsCacheAPI.kt @@ -1,7 +1,7 @@ package dev.inmo.tgbotapi.libraries.cache.admins import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo -import dev.inmo.micro_utils.repos.exposed.onetomany.ExposedOneToManyKeyValueRepo +import dev.inmo.micro_utils.repos.exposed.onetomany.ExposedKeyValuesRepo import dev.inmo.micro_utils.repos.mappers.withMapper import dev.inmo.tgbotapi.bot.TelegramBot import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext @@ -36,7 +36,7 @@ fun AdminsCacheAPI( ) : AdminsCacheAPI = DefaultAdminsCacheAPI( bot, DefaultAdminsCacheAPIRepo( - ExposedOneToManyKeyValueRepo( + ExposedKeyValuesRepo( database, { long("chatId") }, { text("member") }, diff --git a/gradle.properties b/gradle.properties index 5f2edbb..e90513b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ kotlin_serialisation_core_version=1.3.3 github_release_plugin_version=2.3.7 tgbotapi_version=2.0.2 -micro_utils_version=0.10.8 +micro_utils_version=0.11.0 exposed_version=0.38.2 plagubot_version=1.1.1