fix of build

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

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 },
)