浏览代码

fix(ManageStation): Not closing on station deletion

Owen Diffey 3 年之前
父节点
当前提交
cbcf03db18
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 } }]