fix(notifications): multiple providers using the wrong params

This commit is contained in:
Nicolas Meienberger
2025-11-23 21:08:07 +01:00
parent 8d4e5d2d4e
commit e99487eed9
7 changed files with 90 additions and 16 deletions

View File

@@ -58,7 +58,7 @@ async function encryptSensitiveFields(config: NotificationConfig): Promise<Notif
case "ntfy":
return {
...config,
token: config.token ? await cryptoUtils.encrypt(config.token) : undefined,
password: config.password ? await cryptoUtils.encrypt(config.password) : undefined,
};
case "pushover":
return {
@@ -100,7 +100,7 @@ async function decryptSensitiveFields(config: NotificationConfig): Promise<Notif
case "ntfy":
return {
...config,
token: config.token ? await cryptoUtils.decrypt(config.token) : undefined,
password: config.password ? await cryptoUtils.decrypt(config.password) : undefined,
};
case "pushover":
return {