feat: add discord and pushover as notification agents (#300)

fix: most error messages of the notifications endpoints would not reach the frontend
This commit is contained in:
Miguel Ribeiro
2024-05-06 18:55:10 +02:00
committed by GitHub
parent 4199d4c3e7
commit 899482982e
40 changed files with 2317 additions and 23 deletions
@@ -21,7 +21,7 @@
) {
$response = [
"success" => false,
"errorMessage" => translate('fill_mandatory_fields', $i18n)
"message" => translate('fill_mandatory_fields', $i18n)
];
echo json_encode($response);
} else {
@@ -42,7 +42,7 @@
if ($result === false) {
$response = [
"success" => false,
"errorMessage" => translate('error_saving_notifications', $i18n)
"message" => translate('error_saving_notifications', $i18n)
];
echo json_encode($response);
} else {
@@ -73,7 +73,7 @@
} else {
$response = [
"success" => false,
"errorMessage" => translate('error_saving_notifications', $i18n)
"message" => translate('error_saving_notifications', $i18n)
];
echo json_encode($response);
}