Skip to content

Commit

Permalink
kobo remove no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 16, 2024
1 parent c9095b1 commit 5f5e62d
Showing 1 changed file with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 5f5e62d

Please sign in to comment.