소스 검색

fix: user account removal didn't remove deleted stations from the cache

Kristian Vos 3 년 전
부모
커밋
1bdbbaa9af
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      backend/logic/actions/users.js

+ 2 - 0
backend/logic/actions/users.js

@@ -244,6 +244,8 @@ export default {
 								stationModel.deleteOne({ _id: station._id }, err => {
 									if (err) return callback(err);
 
+									CacheModule.runJob("HDEL", { table: "stations", key: station._id });
+
 									// if applicable, delete the corresponding playlist for the station
 									if (station.playlist)
 										return PlaylistsModule.runJob("DELETE_PLAYLIST", {