mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Remove sonarr episodes from the cache table
This commit is contained in:
parent
4eb58d359c
commit
0ceb8a3c95
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue