test notifications
This commit is contained in:
1 parent
cb5d8c3468
commit
36d13d556e
3 files changed
+23
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user