refactor: formatting

This commit is contained in:
wea_ondara
2023-11-25 16:59:36 +01:00
parent d8bb97805c
commit 96150718e0
3 changed files with 10 additions and 13 deletions

View File

@@ -78,11 +78,13 @@ export class MangaUpdatesCache {
.filter(([title, entry]) => entry.lastUpdateMs + this.MAX_CACHE_AGE_SEARCH_BY_TITLE < Date.now())
.map(([title, entry]) => title);
}
getOutOfDateSeries(): string[] {
return Array.from(this._seriesById.entries())
.filter(([title, entry]) => entry.lastUpdateMs + this.MAX_CACHE_AGE_SERIES_BY_ID < Date.now())
.map(([title, entry]) => title);
}
getOutOfDateSeriesGroups(): string[] {
return Array.from(this._seriesGroupsById.entries())
.filter(([title, entry]) => entry.lastUpdateMs + this.MAX_CACHE_AGE_SERIES_GROUPS_BY_ID < Date.now())