mirror of
https://github.com/seerr-team/seerr.git
synced 2026-05-19 14:18:39 -04:00
fix(ntfy): remove undefined fields from ntfy payload (#2931)
This commit is contained in:
@@ -95,15 +95,21 @@ class NtfyAgent
|
||||
click = `${applicationUrl}/${payload.media.mediaType}/${payload.media.tmdbId}`;
|
||||
}
|
||||
|
||||
return {
|
||||
const ntfyPayload: Record<string, unknown> = {
|
||||
topic,
|
||||
priority,
|
||||
title,
|
||||
message,
|
||||
markdown: true,
|
||||
attach,
|
||||
click,
|
||||
};
|
||||
if (attach) {
|
||||
ntfyPayload.attach = attach;
|
||||
}
|
||||
if (click) {
|
||||
ntfyPayload.click = click;
|
||||
}
|
||||
|
||||
return ntfyPayload;
|
||||
}
|
||||
|
||||
public shouldSend(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user