From 328a64eb90dcccf01562c04cb1c45add063040d9 Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Wed, 25 Sep 2024 21:46:39 -0400 Subject: [PATCH] IO-2924-Refactor-Production-board-to-use-Socket-Provider: Finalize Signed-off-by: Dave Richer --- server/job/job-updated.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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" }); };