refactor: frontend: cleanup

This commit is contained in:
wea_ondara
2023-11-20 18:16:13 +01:00
parent 725554f645
commit 27290799f7

View File

@@ -58,8 +58,6 @@ export default class MangaUpdatesDataService {
console.error(err); console.error(err);
} }
continue; continue;
} finally {
// await new Promise((r) => setTimeout(r, 1000));
} }
matching = results.results matching = results.results
.filter(e => stringSimilarity(title, e.record.title, 2, false) >= 0.95) .filter(e => stringSimilarity(title, e.record.title, 2, false) >= 0.95)
@@ -103,8 +101,6 @@ export default class MangaUpdatesDataService {
console.error(err); console.error(err);
} }
continue; continue;
} finally {
// await new Promise((r) => setTimeout(r, 1000));
} }
await mangaStore.updateMangaUpdatesSeries([series]); await mangaStore.updateMangaUpdatesSeries([series]);
} finally { } finally {
@@ -119,11 +115,6 @@ export default class MangaUpdatesDataService {
let i = 0; let i = 0;
for (const s of series) { for (const s of series) {
try { try {
// const dbSeries = await dbStore.mangaUpdatesRepository.getSeriesById(s.series_id);
// if (dbSeries) { // TODO check for now - lastUpdated < 1d or sth
// continue;
// }
let groups; let groups;
try { try {
groups = await this.mangaUpdatesApi.groups(s.series_id); groups = await this.mangaUpdatesApi.groups(s.series_id);
@@ -134,8 +125,6 @@ export default class MangaUpdatesDataService {
console.error(err); console.error(err);
} }
continue; continue;
} finally {
// await new Promise((r) => setTimeout(r, 1000));
} }
const updates = groups.release_list const updates = groups.release_list