Merge remote-tracking branch 'origin/develop' into feat/status-page-themes-backend
This commit is contained in:
commit
a5af4e48df
90 files changed
+4154
-1320
No files matched your search
@@ -37,13 +37,9 @@ class NotificationController implements INotificationController {
|
||||
const notification = testNotificationBodyValidation.parse(req.body);
|
||||
const success = await this.notificationsService.sendTestNotification(notification);
|
||||
|
||||
if (!success) {
|
||||
throw new AppError({ message: "Sending notification failed", status: 500 });
|
||||
}
|
||||
|
||||
return res.status(200).json({
|
||||
success: true,
|
||||
msg: "Notification sent successfully",
|
||||
success,
|
||||
msg: success ? "Notification sent successfully" : "Notification could not be sent — check the destination details.",
|
||||
details: { service: SERVICE_NAME },
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user