Skip to content

Commit

Permalink
🐛 fix: use API routes (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Colossal Engineer <[email protected]>
  • Loading branch information
jxckUK and colossalengineer authored Oct 3, 2023
1 parent f0201fc commit 9d5800c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
});
});

Expand Down

0 comments on commit 9d5800c

Please sign in to comment.