浏览代码

fix: notify to station that private playlist is no longer selected on remove

Kristian Vos 5 年之前
父节点
当前提交
208bf32b70
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      backend/logic/actions/playlists.js

+ 4 - 2
backend/logic/actions/playlists.js

@@ -649,8 +649,10 @@ let lib = {
 							},
 
 							(res, next) => {
-								if (!station.partyMode) moduleManager.modules["stations"].updateStation(station._id, next);
-								else next();
+								if (!station.partyMode) {
+									moduleManager.modules["stations"].updateStation(station._id, next);
+									cache.pub('privatePlaylist.selected', { playlistId: null, stationId: station._id });
+								} else next();
 							}
 						], (err) => {
 							next();