Skip to content

Commit

Permalink
Add EpisodeMapping into missed animes cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed May 13, 2024
1 parent 4fe4a2b commit 7731d0e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,7 +28,8 @@ class MemberFollowAnimeCacheService : AbstractCacheService {
MapCache<UUIDPaginationKeyCache, PageableDto<MissedAnimeDto>>(
classes = listOf(
MemberFollowAnime::class.java,
MemberFollowEpisode::class.java
MemberFollowEpisode::class.java,
EpisodeMapping::class.java,
),
) {
val member = memberCacheService.find(it.uuid) ?: return@MapCache PageableDto.empty()
Expand Down

0 comments on commit 7731d0e

Please sign in to comment.