Files
bodyshop/server/notifications/eventHandlers/handleTasksChange.js
2025-02-11 10:40:57 -05:00

12 lines
419 B
JavaScript

const scenarioParser = require("../utils/scenarioParser");
const handleTasksChange = 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: "Tasks Notifications Event Handled." });
};
//
module.exports = handleTasksChange;