浏览代码

Fix for travis build failure

Owen Diffey 4 年之前
父节点
当前提交
d9e617f8eb
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      backend/logic/actions/apis.js

+ 12 - 2
backend/logic/actions/apis.js

@@ -123,7 +123,12 @@ export default {
 	 * @param {Function} cb - callback
 	 */
 	joinRoom(session, page, cb) {
-		if (page === "home" || page.startsWith("profile.") || page.startsWith("manage-station.") || page.startsWith("edit-song.")) {
+		if (
+			page === "home" ||
+			page.startsWith("profile.") ||
+			page.startsWith("manage-station.") ||
+			page.startsWith("edit-song.")
+		) {
 			WSModule.runJob("SOCKET_JOIN_ROOM", {
 				socketId: session.socketId,
 				room: page
@@ -145,7 +150,12 @@ export default {
 	 * @param {Function} cb - callback
 	 */
 	leaveRoom(session, room, cb) {
-		if (room === "home" || room.startsWith("profile.") || room.startsWith("manage-station.") || room.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