From 941d0d28a4c5d345c97dc3290b2a7e46d6c9fd77 Mon Sep 17 00:00:00 2001 From: wea_ondara Date: Sat, 25 Nov 2023 17:02:26 +0100 Subject: [PATCH] refactor: renaming --- frontend/src/data/service/MangaUpdatesDataService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/data/service/MangaUpdatesDataService.ts b/frontend/src/data/service/MangaUpdatesDataService.ts index 09eddaa..ae1c583 100644 --- a/frontend/src/data/service/MangaUpdatesDataService.ts +++ b/frontend/src/data/service/MangaUpdatesDataService.ts @@ -25,7 +25,7 @@ export default class MangaUpdatesDataService { } private async findMissingRelations(mangaStore: MangaStore, dbStore: DbStore, progress: Progress): Promise { - const allowTypes = new Set(['Manga', 'Manhwa', 'Manhua'].map(e => e.toLowerCase())); + const allowedTypes = new Set(['Manga', 'Manhwa', 'Manhua'].map(e => e.toLowerCase())); const media = await dbStore.aniListMangaRepository.getMedia(); const relations = await dbStore.mangaUpdatesRepository.getRelations(); @@ -59,7 +59,7 @@ export default class MangaUpdatesDataService { }; matching = results.results .filter(e => stringSimilarity(cleaner(title), cleaner(decode(e.record.title)), 2, false) >= 0.95) - .filter(e => allowTypes.has(e.record.type.toLowerCase())) //check if a manga or similar but not novel + .filter(e => allowedTypes.has(e.record.type.toLowerCase())) //check if a manga or similar but not novel .filter(e => m.startDate.year - 1 <= parseInt('' + e.record.year) && parseInt('' + e.record.year) <= m.startDate.year + 1); //check year +-1 if (matching.length === 0) {