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

Updated the Gitchange log
pull/1488/head
Jamie.Rees 7 years ago
parent da5a4b0641
commit a14c172618

@ -4,6 +4,16 @@
### **New Features**
- Added Pushbullet notifications #1459 #865. [Jamie.Rees]
- Update README.md. [Jamie]
- Update README.md. [Jamie]
- Update README.md. [Jamie]
- Added the logging endpoint at /api/v1/Logging for the UI logs #1465. [tidusjar]
- Change the RID. [Jamie.Rees]
- Update README.md. [Jamie]
@ -84,6 +94,18 @@
### **Fixes**
- Made the placeholder color on the login page a bit lighter #865. [Jamie.Rees]
- Landing and login page changes #865 #1485. [tidusjar]
- #1458 #865 More work on landing. [Jamie.Rees]
- Working on the landing page #1458 #865. [tidusjar]
- A lot of clean up and added a new Image api #865. [Jamie.Rees]
- Cleaned up the Logging API slightly #1465 #865. [Jamie.Rees]
- Fixed the Identity Server discovery bug #1456 #865. [tidusjar]
- Fixed the issue with the Identity Server running on a different port, we can now use -url #865. [Jamie.Rees]

@ -16,6 +16,7 @@ namespace Ombi.Helpers
public static EventId Notification => new EventId(4000);
public static EventId DiscordNotification => new EventId(4001);
public static EventId PushbulletNotification => new EventId(4002);
public static EventId TvSender => new EventId(5000);
public static EventId SonarrSender => new EventId(5001);

@ -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");
}
}

Loading…
Cancel
Save