Remove sonarr episodes from the cache table

This commit is contained in:
Jamie.Rees 2017-10-16 08:26:13 +01:00
commit 0ceb8a3c95

View file

@ -54,6 +54,7 @@ namespace Ombi.Schedule.Jobs.Sonarr
await _ctx.SonarrCache.AddRangeAsync(entites);
var episodesToAdd = new List<SonarrEpisodeCache>();
await _ctx.Database.ExecuteSqlCommandAsync("DELETE FROM SonarrEpisodeCache");
foreach (var s in sonarrSeries)
{
var episodes = await _api.GetEpisodes(s.id, settings.ApiKey, settings.FullUri);