Преглед на файлове

Small fix to last commit

Kristian Vos преди 4 години
родител
ревизия
2aa87d2a9e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      backend/logic/actions/apis.js

+ 1 - 1
backend/logic/actions/apis.js

@@ -145,7 +145,7 @@ export default {
 	 * @param {Function} cb - callback
 	 */
 	leaveRoom(session, room, cb) {
-		if (room === "home" || room.startsWith("profile.") || room.startsWith("manage-station.") || page.startsWith("edit-song.")) {
+		if (room === "home" || room.startsWith("profile.") || room.startsWith("manage-station.") || room.startsWith("edit-song.")) {
 			WSModule.runJob("SOCKET_LEAVE_ROOM", {
 				socketId: session.socketId,
 				room