Update Tracking Backend (#1457)

* Update Tracking Library

* Update Bangumi

* Update Anilist

* Update MangaUpdates

* Update MAL

* Add private to bind track

* Use null

* Remove old nullable

* Remove custom implementation of supportsTrackDeletion

* Add private to updateTrack

* Some descriptions

* Another description
This commit is contained in:
Mitchell Syer
2025-06-22 10:38:22 -04:00
committed by GitHub
parent 972137c035
commit abea85d831
76 changed files with 1496 additions and 940 deletions

View File

@@ -114,15 +114,16 @@ object TrackController {
queryParam<Int>("mangaId"),
queryParam<Int>("trackerId"),
queryParam<String>("remoteId"),
queryParam<Boolean>("private"),
documentWith = {
withOperation {
summary("Track Record Bind")
description("Bind a Track Record to a Manga")
}
},
behaviorOf = { ctx, mangaId, trackerId, remoteId ->
behaviorOf = { ctx, mangaId, trackerId, remoteId, private ->
ctx.future {
future { Track.bind(mangaId, trackerId, remoteId.toLong()) }
future { Track.bind(mangaId, trackerId, remoteId.toLong(), private) }
.thenApply { ctx.status(HttpStatus.OK) }
}
},