Queue bulk migration search match update requests

Prevent spamming the source with requests
This commit is contained in:
schroda
2026-05-08 15:52:02 +02:00
parent 55a620c63a
commit 06eb6a12d6

View File

@@ -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) {