Does not compile, need to get data from UI into nancy somehow and figure out why IMassEmail is not initializing

This commit is contained in:
dhruvb14 2017-01-31 22:54:58 -05:00
parent 16823e2739
commit 8f3c4ca1b2
7 changed files with 255 additions and 7 deletions

View file

@ -124,7 +124,7 @@ namespace Ombi.UI.Modules.Admin
ICacheProvider cache, ISettingsService<SlackNotificationSettings> slackSettings,
ISlackApi slackApi, ISettingsService<LandingPageSettings> lp,
ISettingsService<ScheduledJobsSettings> scheduler, IJobRecord rec, IAnalytics analytics,
ISettingsService<NotificationSettingsV2> notifyService, IRecentlyAdded recentlyAdded,
ISettingsService<NotificationSettingsV2> notifyService, IRecentlyAdded recentlyAdded, IMassEmail massEmail,
ISettingsService<WatcherSettings> watcherSettings ,
ISettingsService<DiscordNotificationSettings> discord,
IDiscordApi discordapi, ISettingsService<RadarrSettings> settings, IRadarrApi radarrApi,
@ -159,6 +159,7 @@ namespace Ombi.UI.Modules.Admin
Analytics = analytics;
NotifySettings = notifyService;
RecentlyAdded = recentlyAdded;
MassEmail = massEmail;
WatcherSettings = watcherSettings;
DiscordSettings = discord;
DiscordApi = discordapi;
@ -1252,7 +1253,7 @@ namespace Ombi.UI.Modules.Admin
try
{
Log.Debug("Clicked Admin Mass Email Test");
RecentlyAdded.RecentlyAddedAdminTest();
MassEmail.MassEmailAdminTest("Dhruv's Test Email");
return Response.AsJson(new JsonResponseModel { Result = true, Message = "Sent email to administrator" });
}
catch (Exception e)