added Mission Closed Toeast, enhanced logic

This commit is contained in:
PxlLoewe
2025-07-14 23:57:33 -07:00
parent d7ca0eb166
commit 7be21a738a
7 changed files with 209 additions and 18 deletions

View File

@@ -86,7 +86,7 @@ router.patch("/:id", async (req, res) => {
where: { id: Number(id) },
data: req.body,
});
io.to("dispatchers").emit("update-mission", updatedMission);
io.to("dispatchers").emit("update-mission", { updatedMission });
res.json(updatedMission);
} catch (error) {
console.error(error);