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:
schroda
2026-06-30 14:58:22 +02:00
parent e316668ba6
commit ef0dbef9cd
6 changed files with 107 additions and 35 deletions

View File

@@ -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,