Update migration search success counter without found match

It does not matter if a match was found or not. As long as a single source search succeeds, the search progress success counter needs to be increased
This commit is contained in:
schroda
2026-05-16 23:09:10 +02:00
parent cd8fde4a7b
commit 2f3f1290e5

View File

@@ -956,8 +956,6 @@ export class MigrationManager {
const draftEntry = draft.entries[mangaId];
if (draftEntry.searchMatches.length) {
draft.searchProgress.success += 1;
if (draftEntry.selectedMatchMangaId != null) {
draftEntry.status = MigrationEntryStatus.SEARCH_COMPLETE;
} else {
@@ -967,6 +965,7 @@ export class MigrationManager {
draftEntry.status = MigrationEntryStatus.NO_MATCH;
}
draft.searchProgress.success += 1;
draft.searchProgress.completed += 1;
});
} catch (error) {