From 5f5e62dead728b53f2460101a3a7ea95c1f0f5d7 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 16 Aug 2024 14:10:48 +0800 Subject: [PATCH] kobo remove no-op --- .../interfaces/api/kobo/KoboController.kt | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt index 52e14f0355d..37e328e976e 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt @@ -236,11 +236,11 @@ class KoboController( priorityTimestamp = ZonedDateTime.now(ZoneId.of("Z")), statistics = StatisticsDto(lastModified = ZonedDateTime.now(ZoneId.of("Z"))), statusInfo = - StatusInfoDto( - lastModified = ZonedDateTime.now(ZoneId.of("Z")), - status = StatusDto.READY_TO_READ, - timesStartedReading = 0, - ), + StatusInfoDto( + lastModified = ZonedDateTime.now(ZoneId.of("Z")), + status = StatusDto.READY_TO_READ, + timesStartedReading = 0, + ), ) buildList { @@ -295,11 +295,11 @@ class KoboController( priorityTimestamp = ZonedDateTime.now(ZoneId.of("Z")), statistics = StatisticsDto(lastModified = ZonedDateTime.now(ZoneId.of("Z"))), statusInfo = - StatusInfoDto( - lastModified = ZonedDateTime.now(ZoneId.of("Z")), - status = StatusDto.READY_TO_READ, - timesStartedReading = 0, - ), + StatusInfoDto( + lastModified = ZonedDateTime.now(ZoneId.of("Z")), + status = StatusDto.READY_TO_READ, + timesStartedReading = 0, + ), ) books.content.map { @@ -378,9 +378,6 @@ class KoboController( else ResponseEntity.ok(bookLifecycle.getThumbnailBytes(bookId)?.bytes ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)) - @PostMapping("v1/library/tags/*/items/delete") - fun noOp() = ResponseEntity.ok().body(mapper.createObjectNode()) - @RequestMapping( value = ["{*path}"], method = [RequestMethod.GET, RequestMethod.PUT, RequestMethod.POST, RequestMethod.DELETE, RequestMethod.PATCH],