Queue bulk migration search match update requests
Prevent spamming the source with requests
This commit is contained in:
@@ -733,9 +733,12 @@ export class MigrationManager {
|
||||
|
||||
return (async () => {
|
||||
try {
|
||||
const updatedMatch = await requestManager.refreshManga(match.id, {
|
||||
const updatedMatch = await MigrationManager.getOrCreateSourceQueue(sourceId)(
|
||||
() =>
|
||||
requestManager.refreshManga(match.id, {
|
||||
awaitRefetchQueries: true,
|
||||
}).response;
|
||||
}).response,
|
||||
);
|
||||
|
||||
return updatedMatch.data?.fetchManga?.manga ?? match;
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user