mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Tidied up the warnings
This commit is contained in:
parent
ad796a47bd
commit
88b1472f88
5 changed files with 19 additions and 14 deletions
|
@ -227,7 +227,7 @@ namespace PlexRequests.UI.Modules
|
|||
Post["/clearlogs", true] = async (x, ct) => await ClearLogs();
|
||||
|
||||
Get["/notificationsettings", true] = async (x, ct) => await NotificationSettings();
|
||||
Post["/notificationsettings", true] = async (x, ct) => await SaveNotificationSettings();
|
||||
Post["/notificationsettings"] = x => SaveNotificationSettings();
|
||||
|
||||
Post["/recentlyAddedTest"] = x => RecentlyAddedTest();
|
||||
}
|
||||
|
@ -287,7 +287,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
Analytics.TrackEventAsync(Category.Admin, Action.Save, "CollectAnalyticData turned off", Username, CookieHelper.GetAnalyticClientId(Cookies));
|
||||
}
|
||||
var result = PrService.SaveSettings(model);
|
||||
var result = await PrService.SaveSettingsAsync(model);
|
||||
|
||||
Analytics.TrackEventAsync(Category.Admin, Action.Save, "PlexRequestSettings", Username, CookieHelper.GetAnalyticClientId(Cookies));
|
||||
return Response.AsJson(result
|
||||
|
@ -520,7 +520,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
NotificationService.Subscribe(new EmailMessageNotification(EmailService));
|
||||
settings.Enabled = true;
|
||||
NotificationService.Publish(notificationModel, settings);
|
||||
await NotificationService.Publish(notificationModel, settings);
|
||||
Log.Info("Sent email notification test");
|
||||
}
|
||||
catch (Exception)
|
||||
|
@ -620,7 +620,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
NotificationService.Subscribe(new PushbulletNotification(PushbulletApi, PushbulletService));
|
||||
settings.Enabled = true;
|
||||
NotificationService.Publish(notificationModel, settings);
|
||||
await NotificationService.Publish(notificationModel, settings);
|
||||
Log.Info("Sent pushbullet notification test");
|
||||
}
|
||||
catch (Exception)
|
||||
|
@ -686,7 +686,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
NotificationService.Subscribe(new PushoverNotification(PushoverApi, PushoverService));
|
||||
settings.Enabled = true;
|
||||
NotificationService.Publish(notificationModel, settings);
|
||||
await NotificationService.Publish(notificationModel, settings);
|
||||
Log.Info("Sent pushover notification test");
|
||||
}
|
||||
catch (Exception)
|
||||
|
@ -1040,7 +1040,7 @@ namespace PlexRequests.UI.Modules
|
|||
return View["NotificationSettings", s];
|
||||
}
|
||||
|
||||
private async Task<Negotiator> SaveNotificationSettings()
|
||||
private Negotiator SaveNotificationSettings()
|
||||
{
|
||||
var model = this.Bind<NotificationSettingsV2>();
|
||||
return View["NotificationSettings", model];
|
||||
|
|
|
@ -47,12 +47,12 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
Analytics = a;
|
||||
|
||||
Get["/", true] = async(x,c) => await SetCulture();
|
||||
Get["/"] = x => SetCulture();
|
||||
}
|
||||
|
||||
private IAnalytics Analytics { get; }
|
||||
|
||||
public async Task<RedirectResponse> SetCulture()
|
||||
private RedirectResponse SetCulture()
|
||||
{
|
||||
var culture = (string)Request.Query["l"];
|
||||
var returnUrl = (string)Request.Query["u"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue