From 7731d0ebe8740948f44aaed761a0f9ac4956f794 Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Mon, 13 May 2024 18:33:38 +0200 Subject: [PATCH] Add EpisodeMapping into missed animes cache --- .../services/caches/MemberFollowAnimeCacheService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/fr/shikkanime/services/caches/MemberFollowAnimeCacheService.kt b/src/main/kotlin/fr/shikkanime/services/caches/MemberFollowAnimeCacheService.kt index 85cc9e12..d66a2250 100644 --- a/src/main/kotlin/fr/shikkanime/services/caches/MemberFollowAnimeCacheService.kt +++ b/src/main/kotlin/fr/shikkanime/services/caches/MemberFollowAnimeCacheService.kt @@ -6,6 +6,7 @@ import fr.shikkanime.converters.AbstractConverter import fr.shikkanime.dtos.AnimeDto import fr.shikkanime.dtos.MissedAnimeDto import fr.shikkanime.dtos.PageableDto +import fr.shikkanime.entities.EpisodeMapping import fr.shikkanime.entities.MemberFollowAnime import fr.shikkanime.entities.MemberFollowEpisode import fr.shikkanime.services.MemberFollowAnimeService @@ -27,7 +28,8 @@ class MemberFollowAnimeCacheService : AbstractCacheService { MapCache>( classes = listOf( MemberFollowAnime::class.java, - MemberFollowEpisode::class.java + MemberFollowEpisode::class.java, + EpisodeMapping::class.java, ), ) { val member = memberCacheService.find(it.uuid) ?: return@MapCache PageableDto.empty()