Skip to content

Commit

Permalink
fix(notification): added event object to test-notification (cross-see…
Browse files Browse the repository at this point in the history
…d#527)

## Notifiarr test-notification compatibility

Added an `event: "TEST"` in `extra` object to the JSON for
test-notification (`sendTestNotification()`)

It should not affect other apprise integrations.

- [x] test-notification command now works with Notifiarr
  • Loading branch information
zakkarry authored Oct 20, 2023
1 parent ef83f90 commit ae824fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pushNotifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ export function initializePushNotifier(): void {
}

export function sendTestNotification(): void {
pushNotifier.notify({ body: "Test" });
pushNotifier.notify({ body: "Test", extra: { event: "TEST" } });
logger.info("Sent test notification");
}

0 comments on commit ae824fc

Please sign in to comment.