mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-10 14:24:34 -05:00
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:
@@ -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) }
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user