Use new "binTrackRecord" mutation during migration
Does not cause any requests to the trackers during the migration, which prevents getting rate limited closes #1104
This commit is contained in:
@@ -126,6 +126,8 @@ import type {
|
||||
StopUpdaterMutationVariables,
|
||||
TrackerBindMutation,
|
||||
TrackerBindMutationVariables,
|
||||
TrackerBindTrackRecordMutation,
|
||||
TrackerBindTrackRecordMutationVariables,
|
||||
TrackerFetchBindMutation,
|
||||
TrackerFetchBindMutationVariables,
|
||||
TrackerLoginCredentialsMutation,
|
||||
@@ -309,6 +311,7 @@ import type { QueuePriority } from '@/lib/Queue.ts';
|
||||
import { SourceAwareQueue } from '@/lib/SourceAwareQueue.ts';
|
||||
import { TRACKER_SEARCH } from '@/lib/graphql/tracker/TrackerQuery.ts';
|
||||
import {
|
||||
TRACK_BIND_TRACK_RECORD,
|
||||
TRACKER_BIND,
|
||||
TRACKER_FETCH_BIND,
|
||||
TRACKER_LOGIN_CREDENTIALS,
|
||||
@@ -3719,6 +3722,19 @@ export class RequestManager {
|
||||
);
|
||||
}
|
||||
|
||||
public bindTrackRecord(
|
||||
mangaId: number,
|
||||
trackRecordId: number,
|
||||
options?: MutationOptions<TrackerBindTrackRecordMutation, TrackerBindTrackRecordMutationVariables>,
|
||||
): AbortableApolloMutationResponse<TrackerBindTrackRecordMutation> {
|
||||
return this.doRequest(
|
||||
GQLMethod.MUTATION,
|
||||
TRACK_BIND_TRACK_RECORD,
|
||||
{ input: { mangaId, trackRecordId } },
|
||||
options,
|
||||
);
|
||||
}
|
||||
|
||||
public unbindTracker(
|
||||
recordId: number,
|
||||
deleteRemoteTrack?: boolean,
|
||||
|
||||
Reference in New Issue
Block a user