test notifications

This commit is contained in:
Alex Holliday committed 2025-11-26 20:40:21 +00:00
1 parent cb5d8c3468
commit 36d13d556e
3 files changed
+23 -3

No files matched your search

+10 -1
View File
@@ -310,8 +310,17 @@ class MonitorController {
monitorId,
teamId
);
const msg = results
.map(
(r) =>
`${r.channelName} (${r.channelType}): ${
r.sent ? "Success" : "Failed"
}`
)
.join("\n");
return res.status(200).json({
message: "Notification test sent successfully",
message: msg,
data: results,
});
} catch (error) {