mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-12 15:24:33 -05:00
Change Track.bind to use trackerId + remoteId (#842)
This commit is contained in:
@@ -105,15 +105,16 @@ object TrackController {
|
||||
val bind =
|
||||
handler(
|
||||
queryParam<Int>("mangaId"),
|
||||
queryParam<Int>("trackSearchId"),
|
||||
queryParam<Int>("trackerId"),
|
||||
queryParam<String>("remoteId"),
|
||||
documentWith = {
|
||||
withOperation {
|
||||
summary("Track Record Bind")
|
||||
description("Bind a Track Record to a Manga")
|
||||
}
|
||||
},
|
||||
behaviorOf = { ctx, mangaId, trackSearchId ->
|
||||
ctx.future(future { Track.bind(mangaId, trackSearchId) })
|
||||
behaviorOf = { ctx, mangaId, trackerId, remoteId ->
|
||||
ctx.future(future { Track.bind(mangaId, trackerId, remoteId.toLong()) })
|
||||
},
|
||||
withResults = {
|
||||
httpCode(HttpCode.OK)
|
||||
|
||||
Reference in New Issue
Block a user