mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-05 11:54:38 -05:00
Remove koreader sync server address from settings (#1807)
Should have been done with 4dbd9d70d2
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package suwayomi.tachidesk.graphql.types
|
||||
|
||||
data class KoSyncStatusPayload(
|
||||
val isLoggedIn: Boolean,
|
||||
val serverAddress: String?,
|
||||
val username: String?,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user