fix of build

This commit is contained in:
InsanusMokrassar 2024-10-22 17:15:49 +06:00
parent 3e2b6e67e9
commit a8c317af44
3 changed files with 8 additions and 7 deletions

View File

@ -41,6 +41,6 @@ application {
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

View File

@ -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]

View File

@ -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<String>) {
{ 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<String>) {
{ text("url") },
"chatsUrlsSeen"
).withMapper(
{ chatId },
{ chatId.long },
{ this },
{ ChatId(this) },
{ ChatId(RawChatId(this)) },
{ this },
)