Skip to content

Commit

Permalink
fix of build
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Oct 22, 2024
1 parent 3e2b6e6 commit a8c317a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ application {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
9 changes: 5 additions & 4 deletions src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Expand All @@ -75,9 +76,9 @@ suspend fun main(args: Array<String>) {
{ text("url") },
"chatsUrlsSeen"
).withMapper(
{ chatId },
{ chatId.long },
{ this },
{ ChatId(this) },
{ ChatId(RawChatId(this)) },
{ this },
)

Expand Down

0 comments on commit a8c317a

Please sign in to comment.