Skip to content

Commit 5f5e62d

Browse files
committed
kobo remove no-op
1 parent c9095b1 commit 5f5e62d

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

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

+10-13
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ class KoboController(
236236
priorityTimestamp = ZonedDateTime.now(ZoneId.of("Z")),
237237
statistics = StatisticsDto(lastModified = ZonedDateTime.now(ZoneId.of("Z"))),
238238
statusInfo =
239-
StatusInfoDto(
240-
lastModified = ZonedDateTime.now(ZoneId.of("Z")),
241-
status = StatusDto.READY_TO_READ,
242-
timesStartedReading = 0,
243-
),
239+
StatusInfoDto(
240+
lastModified = ZonedDateTime.now(ZoneId.of("Z")),
241+
status = StatusDto.READY_TO_READ,
242+
timesStartedReading = 0,
243+
),
244244
)
245245

246246
buildList {
@@ -295,11 +295,11 @@ class KoboController(
295295
priorityTimestamp = ZonedDateTime.now(ZoneId.of("Z")),
296296
statistics = StatisticsDto(lastModified = ZonedDateTime.now(ZoneId.of("Z"))),
297297
statusInfo =
298-
StatusInfoDto(
299-
lastModified = ZonedDateTime.now(ZoneId.of("Z")),
300-
status = StatusDto.READY_TO_READ,
301-
timesStartedReading = 0,
302-
),
298+
StatusInfoDto(
299+
lastModified = ZonedDateTime.now(ZoneId.of("Z")),
300+
status = StatusDto.READY_TO_READ,
301+
timesStartedReading = 0,
302+
),
303303
)
304304

305305
books.content.map {
@@ -378,9 +378,6 @@ class KoboController(
378378
else
379379
ResponseEntity.ok(bookLifecycle.getThumbnailBytes(bookId)?.bytes ?: throw ResponseStatusException(HttpStatus.NOT_FOUND))
380380

381-
@PostMapping("v1/library/tags/*/items/delete")
382-
fun noOp() = ResponseEntity.ok().body(mapper.createObjectNode())
383-
384381
@RequestMapping(
385382
value = ["{*path}"],
386383
method = [RequestMethod.GET, RequestMethod.PUT, RequestMethod.POST, RequestMethod.DELETE, RequestMethod.PATCH],

0 commit comments

Comments
 (0)