Explorar o código

Fixed issues with admin songs not being removed from list upon removal

Kristian Vos %!s(int64=3) %!d(string=hai) anos
pai
achega
9ab2bf1f4a

+ 1 - 1
frontend/src/pages/Admin/tabs/HiddenSongs.vue

@@ -225,7 +225,7 @@ export default {
 		});
 
 		this.socket.on("event:admin.hiddenSong.removed", res => {
-			this.removeSong(res.data.youtubeId);
+			this.removeSong(res.data.songId);
 		});
 
 		this.socket.on("event:admin.hiddenSong.updated", res => {

+ 1 - 1
frontend/src/pages/Admin/tabs/UnverifiedSongs.vue

@@ -241,7 +241,7 @@ export default {
 		});
 
 		this.socket.on("event:admin.unverifiedSong.removed", res => {
-			this.removeSong(res.data.youtubeId);
+			this.removeSong(res.data.songId);
 		});
 
 		this.socket.on("event:admin.unverifiedSong.updated", res => {

+ 1 - 1
frontend/src/pages/Admin/tabs/VerifiedSongs.vue

@@ -322,7 +322,7 @@ export default {
 		);
 
 		this.socket.on("event:admin.verifiedSong.removed", res =>
-			this.removeSong(res.data.youtubeId)
+			this.removeSong(res.data.songId)
 		);
 
 		this.socket.on("event:admin.verifiedSong.updated", res =>