Added the newsletter job to the UI and fully wired it up !wip

This commit is contained in:
Jamie 2018-03-22 15:26:34 +00:00
parent 5ea81568e5
commit ccd873584b
5 changed files with 22 additions and 6 deletions

View file

@ -1,4 +1,5 @@
using Ombi.Helpers;
using System;
using Ombi.Helpers;
namespace Ombi.Settings.Settings.Models
{
@ -35,6 +36,10 @@ namespace Ombi.Settings.Settings.Models
{
return Get(s.UserImporter, Cron.Daily());
}
public static string Newsletter(JobSettings s)
{
return Get(s.Newsletter, Cron.Weekly(DayOfWeek.Friday, 12));
}
public static string SickRageSync(JobSettings s)
{
return Get(s.SickRageSync, Cron.Hourly(35));