Skip to content

Commit f685fa0

Browse files
committed
kobo sync fix store sync merge
1 parent 4632440 commit f685fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class KoboController(
175175
fun syncLibrary(
176176
@AuthenticationPrincipal principal: KomgaPrincipal,
177177
@PathVariable authToken: String,
178-
): ResponseEntity<Collection<SyncResultDto>> {
178+
): ResponseEntity<Collection<Any>> {
179179
val syncTokenReceived = komgaSyncTokenGenerator.fromRequestHeaders(getCurrentRequest()) ?: KomgaSyncToken()
180180

181181
// find the ongoing sync point, else create one
@@ -278,7 +278,7 @@ class KoboController(
278278
if (koboProxy.isEnabled()) {
279279
try {
280280
val koboStoreResponse = koboProxy.proxyCurrentRequest(includeSyncToken = true)
281-
val syncResultsKobo = koboStoreResponse.body?.let { mapper.treeToValue<Collection<SyncResultDto>>(it) } ?: emptyList()
281+
val syncResultsKobo = koboStoreResponse.body?.let { mapper.treeToValue<Collection<Any>>(it) } ?: emptyList()
282282
val syncTokenKobo = koboStoreResponse.headers[X_KOBO_SYNCTOKEN]?.firstOrNull()?.let { komgaSyncTokenGenerator.fromBase64(it) }
283283
val shouldContinueSyncKobo = koboStoreResponse.headers[X_KOBO_SYNC]?.firstOrNull()?.lowercase() == "continue"
284284

0 commit comments

Comments
 (0)