IO-2924-Refactor-Production-board-to-use-Socket-Provider: Finalize
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -25,11 +25,7 @@ const jobUpdated = async (req, res) => {
|
|||||||
|
|
||||||
// Emit the job-updated event only to the room corresponding to the bodyshop
|
// 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
|
ioRedis.to(bodyshopID).emit("job-updated", updatedJob);
|
||||||
// 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 });
|
|
||||||
|
|
||||||
return res.json({ message: "Job updated and event emitted" });
|
return res.json({ message: "Job updated and event emitted" });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user