From a8c317af44896a852d3da7e827b3cfc4bfb1b79e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 22 Oct 2024 17:15:49 +0600 Subject: [PATCH] fix of build --- build.gradle | 4 ++-- gradle/libs.versions.toml | 2 +- src/main/kotlin/App.kt | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 41f99fe..a9036d3 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,6 @@ application { } java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 67635e9..af2f73e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,7 +8,7 @@ krontab = "2.5.0" kslog = "1.3.6" ktor = "2.3.12" exposed = "0.55.0" -psql = "42.6.0" +psql = "42.7.4" clikt = "5.0.1" [libraries] diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt index 2d7347f..2c9bd49 100644 --- a/src/main/kotlin/App.kt +++ b/src/main/kotlin/App.kt @@ -1,3 +1,4 @@ +import com.github.ajalt.clikt.core.parse import dev.inmo.krontab.utils.asFlowWithDelays import dev.inmo.micro_utils.coroutines.* import dev.inmo.micro_utils.pagination.utils.doForAllWithNextPaging @@ -63,9 +64,9 @@ suspend fun main(args: Array) { { text("config") }, "configs" ).withMapper( - { chatId }, + { chatId.long }, { json.encodeToString(ChatSettings.serializer(), this) }, - { ChatId(this) }, + { ChatId(RawChatId(this)) }, { json.decodeFromString(ChatSettings.serializer(), this) }, ).fullyCached(scope = scope) @@ -75,9 +76,9 @@ suspend fun main(args: Array) { { text("url") }, "chatsUrlsSeen" ).withMapper( - { chatId }, + { chatId.long }, { this }, - { ChatId(this) }, + { ChatId(RawChatId(this)) }, { this }, )