feat(notifications): add notification for declined requests

closes #663
This commit is contained in:
sct
2021-01-18 06:34:20 +00:00
parent 4fe8172eb1
commit 2f97f61a6e
9 changed files with 139 additions and 24 deletions

View File

@@ -72,6 +72,13 @@ class PushoverAgent
message += `<b>Requested By</b>\n${user}\n\n`;
message += `<b>Status</b>\nAvailable\n`;
break;
case Notification.MEDIA_DECLINED:
messageTitle = 'Request Declined';
message += `${title}\n\n`;
message += `${plot}\n\n`;
message += `<b>Requested By</b>\n${user}\n\n`;
message += `<b>Status</b>\nDeclined\n`;
break;
case Notification.TEST_NOTIFICATION:
messageTitle = 'Test Notification';
message += `${title}\n\n`;