Trigger the Plex Job when we clear the data out to resync

pull/4029/head
tidusjar 4 years ago
parent 296ceeb762
commit f63f74ef13

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Ombi.Core.Settings;
@ -106,6 +107,9 @@ namespace Ombi.Schedule.Jobs.Ombi
await _plexRepo.ExecuteSql(episodeSQL);
await _plexRepo.ExecuteSql(seasonsSql);
await _plexRepo.ExecuteSql(mainSql);
await OmbiQuartz.Scheduler.TriggerJob(new JobKey(nameof(IPlexContentSync), "Plex"), new JobDataMap(new Dictionary<string, string> { { "recentlyAddedSearch", "false" } }));
}
catch (Exception e)
{

Loading…
Cancel
Save