feature/IO-3096-GlobalNotifications - Checkpoint
This commit is contained in:
13
server/notifications/eventHandlers/handleNotesChange.js
Normal file
13
server/notifications/eventHandlers/handleNotesChange.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const scenarioParser = require("../utils/scenarioParser");
|
||||
|
||||
const handleNotesChange = async (req, res) => {
|
||||
const { logger } = req;
|
||||
|
||||
scenarioParser(req, `req.body.event.new.jobid`).catch((e) => {
|
||||
logger.log("notifications-error", "error", "notifications", null, { error: e?.message });
|
||||
});
|
||||
|
||||
return res.status(200).json({ message: "Notes Changed Notification Event Handled." });
|
||||
};
|
||||
|
||||
module.exports = handleNotesChange;
|
||||
Reference in New Issue
Block a user