diff --git a/server/job/job-updated.js b/server/job/job-updated.js index 61667e9ea..a6b527608 100644 --- a/server/job/job-updated.js +++ b/server/job/job-updated.js @@ -25,11 +25,7 @@ const jobUpdated = async (req, res) => { // Emit the job-updated event only to the room corresponding to the bodyshop - // Note: We are only sending the ID, because that is all that is needed - // What we should do is prevent hasura from sending anything more than it - // but the rewrite templates are currently borked. - - ioRedis.to(bodyshopID).emit("job-updated", { id: updatedJob.id }); + ioRedis.to(bodyshopID).emit("job-updated", updatedJob); return res.json({ message: "Job updated and event emitted" }); };