Files
bodyshop/server/notifications/eventHandlers/handeJobsChange.js
2025-02-11 15:07:42 -05:00

13 lines
436 B
JavaScript

const scenarioParser = require("../utils/scenarioParser");
const handleJobsChange = async (req, res) => {
const { logger } = req;
scenarioParser(req, `req.body.event.new.id`).catch((e) => {
console.dir(e);
logger.log("notifications-error", "error", "notifications", null, { error: e?.message });
});
return res.status(200).json({ message: "Job Notifications Event Handled." });
};
//
module.exports = handleJobsChange;