Explorar o código

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

Kristian Vos %!s(int64=3) %!d(string=hai) anos
pai
achega
1bdbbaa9af
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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", {