From 9d5800ce25b083bbfc8b097c44e1fec105ef1bca Mon Sep 17 00:00:00 2001 From: Jack <48030374+jxckUK@users.noreply.github.com> Date: Tue, 3 Oct 2023 17:30:18 +0100 Subject: [PATCH] :bug: fix: use API routes (#39) Co-authored-by: Colossal Engineer <81814321+colossalengineer@users.noreply.github.com> --- integration/server/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/server/server.ts b/integration/server/server.ts index 0961ed6..6928720 100644 --- a/integration/server/server.ts +++ b/integration/server/server.ts @@ -24,7 +24,7 @@ io.on("connection", (socket) => { data.defaultText, ); - emit("SmartSigns:updateSign", data.id, [ + emit("SmartSigns:apiUpdateSign", data.id, [ data.defaultText.firstLine, data.defaultText.secondLine, data.defaultText.thirdLine, @@ -37,7 +37,7 @@ io.on("connection", (socket) => { socket.on("sna-live-map:update-smart-motorway-sign", (data) => { console.log("[sna-live-map]", "Request received to update Smart Motorway sign", data.id); - emit("smartmotorways:updateSign", data.id, data.speeds); + emit("SmartMotorways:apiUpdateSign", data.id, data.speeds); }); });