IO-2924-Refactor-Production-board-to-use-Socket-Provider: Finalize

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-25 21:46:39 -04:00
parent c661fce8f1
commit 328a64eb90

View File

@@ -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" });
};