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 () => {
|
return (async () => {
|
||||||
try {
|
try {
|
||||||
const updatedMatch = await requestManager.refreshManga(match.id, {
|
const updatedMatch = await MigrationManager.getOrCreateSourceQueue(sourceId)(
|
||||||
|
() =>
|
||||||
|
requestManager.refreshManga(match.id, {
|
||||||
awaitRefetchQueries: true,
|
awaitRefetchQueries: true,
|
||||||
}).response;
|
}).response,
|
||||||
|
);
|
||||||
|
|
||||||
return updatedMatch.data?.fetchManga?.manga ?? match;
|
return updatedMatch.data?.fetchManga?.manga ?? match;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user