mirror of
https://github.com/InsanusMokrassar/BooruGrabberTelegramBot.git
synced 2024-11-23 16:38:42 +00:00
fix of build
This commit is contained in:
parent
3e2b6e67e9
commit
a8c317af44
@ -41,6 +41,6 @@ application {
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
@ -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]
|
||||
|
@ -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 },
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user