feature/IO-3096-GlobalNotifications - Code Review Part 1
This commit is contained in:
@@ -22,7 +22,7 @@ async function processNotificationEvent(req, res, parserPath, successMessage) {
|
||||
|
||||
// Call scenarioParser but don't await it; log any error that occurs.
|
||||
scenarioParser(req, parserPath).catch((error) => {
|
||||
logger.log("notifications-error", "error", "notifications", null, { error: error?.message });
|
||||
logger.log("notifications-error", "error", "notifications", null, { message: error?.message, stack: error?.stack });
|
||||
});
|
||||
|
||||
return res.status(200).json({ message: successMessage });
|
||||
|
||||
Reference in New Issue
Block a user