diff options
| author | Fuwn <[email protected]> | 2023-12-17 04:38:47 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-17 04:38:47 -0800 |
| commit | 10f98276c252eb752de261bb191ccd6d0c7f893a (patch) | |
| tree | 29e491a0b6c74b5bf9368c46494f9dc8de8a28b7 /src/lib | |
| parent | refactor(anime): move episodes (diff) | |
| download | due.moe-10f98276c252eb752de261bb191ccd6d0c7f893a.tar.xz due.moe-10f98276c252eb752de261bb191ccd6d0c7f893a.zip | |
refactor(anime): move cache
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/List/Anime/CleanAnimeList.svelte | 2 | ||||
| -rw-r--r-- | src/lib/Media/Anime/cache.ts (renamed from src/lib/Media/anime.ts) | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte index fcfd95b3..2c843608 100644 --- a/src/lib/List/Anime/CleanAnimeList.svelte +++ b/src/lib/List/Anime/CleanAnimeList.svelte @@ -3,7 +3,7 @@ import settings from '../../../stores/settings'; import type { Media } from '$lib/AniList/media'; - import { cleanCache, updateMedia } from '$lib/Media/anime'; + import { cleanCache, updateMedia } from '$lib/Media/Anime/cache'; import { totalEpisodes } from '$lib/Media/Anime/episodes'; import { airingTime } from '$lib/Media/Anime/airing'; import type { AniListAuthorisation, UserIdentity } from '$lib/AniList/identity'; diff --git a/src/lib/Media/anime.ts b/src/lib/Media/Anime/cache.ts index 475080aa..c423a419 100644 --- a/src/lib/Media/anime.ts +++ b/src/lib/Media/Anime/cache.ts @@ -1,8 +1,8 @@ import { get } from 'svelte/store'; -import anime from '../../stores/anime'; -import { mediaListCollection, Type } from '../AniList/media'; -import lastPruneTimes from '../../stores/lastPruneTimes'; -import type { AniListAuthorisation, UserIdentity } from '../AniList/identity'; +import anime from '../../../stores/anime'; +import { mediaListCollection, Type } from '../../AniList/media'; +import lastPruneTimes from '../../../stores/lastPruneTimes'; +import type { AniListAuthorisation, UserIdentity } from '../../AniList/identity'; export const cleanCache = (user: AniListAuthorisation, identity: UserIdentity) => mediaListCollection(user, identity, Type.Anime, get(anime), get(lastPruneTimes).anime, true); |