#1459 Forgot to get the Pushbullet agent to look up the pusbullet templates rather than the Discord ones.

Updated the Gitchange log
This commit is contained in:
Jamie.Rees 2017-08-03 15:04:51 +01:00
parent da5a4b0641
commit a14c172618
3 changed files with 29 additions and 6 deletions

View file

@ -42,7 +42,7 @@ namespace Ombi.Notifications.Agents
protected override async Task NewRequest(NotificationOptions model, PushbulletSettings settings)
{
var parsed = await LoadTemplate(NotificationAgent.Discord, NotificationType.NewRequest, model);
var parsed = await LoadTemplate(NotificationAgent.Pushbullet, NotificationType.NewRequest, model);
var notification = new NotificationMessage
{
@ -54,7 +54,7 @@ namespace Ombi.Notifications.Agents
protected override async Task Issue(NotificationOptions model, PushbulletSettings settings)
{
var parsed = await LoadTemplate(NotificationAgent.Discord, NotificationType.Issue, model);
var parsed = await LoadTemplate(NotificationAgent.Pushbullet, NotificationType.Issue, model);
var notification = new NotificationMessage
{
@ -87,7 +87,7 @@ namespace Ombi.Notifications.Agents
protected override async Task RequestDeclined(NotificationOptions model, PushbulletSettings settings)
{
var parsed = await LoadTemplate(NotificationAgent.Discord, NotificationType.RequestDeclined, model);
var parsed = await LoadTemplate(NotificationAgent.Pushbullet, NotificationType.RequestDeclined, model);
var notification = new NotificationMessage
{
@ -98,7 +98,7 @@ namespace Ombi.Notifications.Agents
protected override async Task RequestApproved(NotificationOptions model, PushbulletSettings settings)
{
var parsed = await LoadTemplate(NotificationAgent.Discord, NotificationType.RequestApproved, model);
var parsed = await LoadTemplate(NotificationAgent.Pushbullet, NotificationType.RequestApproved, model);
var notification = new NotificationMessage
{
@ -110,7 +110,7 @@ namespace Ombi.Notifications.Agents
protected override async Task AvailableRequest(NotificationOptions model, PushbulletSettings settings)
{
var parsed = await LoadTemplate(NotificationAgent.Discord, NotificationType.RequestAvailable, model);
var parsed = await LoadTemplate(NotificationAgent.Pushbullet, NotificationType.RequestAvailable, model);
var notification = new NotificationMessage
{
@ -127,7 +127,7 @@ namespace Ombi.Notifications.Agents
}
catch (Exception e)
{
Logger.LogError(LoggingEvents.DiscordNotification, e, "Failed to send Pushbullet Notification");
Logger.LogError(LoggingEvents.PushbulletNotification, e, "Failed to send Pushbullet Notification");
}
}