Remove koreader sync server address from settings (#1807)

Should have been done with 4dbd9d70d2
This commit is contained in:
schroda
2025-12-06 18:38:45 +01:00
committed by GitHub
parent 39cae6cc2d
commit 3b36ec550d
4 changed files with 71 additions and 31 deletions

View File

@@ -19,6 +19,7 @@ import java.util.concurrent.CompletableFuture
class KoreaderSyncMutation {
data class ConnectKoSyncAccountInput(
val clientMutationId: String? = null,
val serverAddress: String,
val username: String,
val password: String,
)
@@ -26,7 +27,7 @@ class KoreaderSyncMutation {
@RequireAuth
fun connectKoSyncAccount(input: ConnectKoSyncAccountInput): CompletableFuture<KoSyncConnectPayload> =
future {
val (message, status) = KoreaderSyncService.connect(input.username, input.password)
val (message, status) = KoreaderSyncService.connect(input.serverAddress, input.username, input.password)
KoSyncConnectPayload(
clientMutationId = input.clientMutationId,
@@ -45,7 +46,7 @@ class KoreaderSyncMutation {
KoreaderSyncService.logout()
LogoutKoSyncAccountPayload(
clientMutationId = input.clientMutationId,
status = KoSyncStatusPayload(isLoggedIn = false, username = null),
status = KoSyncStatusPayload(isLoggedIn = false, serverAddress = null, username = null),
)
}