diff --git a/src/main/kotlin/fr/ziedelth/controllers/AnimeController.kt b/src/main/kotlin/fr/ziedelth/controllers/AnimeController.kt index 61ebc5f..40026dd 100644 --- a/src/main/kotlin/fr/ziedelth/controllers/AnimeController.kt +++ b/src/main/kotlin/fr/ziedelth/controllers/AnimeController.kt @@ -165,6 +165,7 @@ class AnimeController : AttachmentController("/animes") { savedAnime = animeRepository.save(savedAnime) animeService.invalidateAll() + episodeService.invalidateAll() call.respond(HttpStatusCode.OK, savedAnime) } catch (e: Exception) { printError(call, e) @@ -188,6 +189,7 @@ class AnimeController : AttachmentController("/animes") { animeRepository.delete(savedAnime) animeService.invalidateAll() + episodeService.invalidateAll() call.respond(HttpStatusCode.NoContent) } catch (e: Exception) { printError(call, e)