Browse Source

fix(ManageStation): Not closing on station deletion

Owen Diffey 3 years ago
parent
commit
cbcf03db18
1 changed files with 5 additions and 0 deletions
  1. 5 0
      backend/logic/actions/stations.js

+ 5 - 0
backend/logic/actions/stations.js

@@ -456,6 +456,11 @@ CacheModule.runJob("SUB", {
 			args: ["event:station.deleted"]
 		});
 
+		WSModule.runJob("EMIT_TO_ROOM", {
+			room: `manage-station.${stationId}`,
+			args: ["event:station.deleted"]
+		});
+
 		WSModule.runJob("EMIT_TO_ROOM", {
 			room: `home`,
 			args: ["event:station.deleted", { data: { stationId } }]