Browse Source

fix: eslint fixes

Owen Diffey 3 years ago
parent
commit
8c67a02a1c

+ 4 - 4
backend/logic/actions/playlists.js

@@ -855,7 +855,7 @@ export default {
 							if (!playlist || playlist.createdBy !== session.userId)
 								return next("Something went wrong when trying to get the playlist");
 
-							next(null, playlist);
+							return next(null, playlist);
 						})
 						.catch(next);
 				},
@@ -932,7 +932,7 @@ export default {
 							if (!playlist || playlist.createdBy !== session.userId)
 								return next("Something went wrong when trying to get the playlist");
 
-							next();
+							return next();
 						})
 						.catch(next);
 				},
@@ -1403,8 +1403,8 @@ export default {
 						.then(playlist => {
 							if (!playlist || playlist.createdBy !== session.userId)
 								return next("Something went wrong when trying to get the playlist");
-							
-							next();
+
+							return next();
 						})
 						.catch(next);
 				},

+ 4 - 1
backend/logic/actions/stations.js

@@ -439,7 +439,10 @@ CacheModule.runJob("SUB", {
 
 		WSModule.runJob("EMIT_TO_ROOM", {
 			room: `manage-station.${res.stationId}`,
-			args: ["event:manageStation.queue.song.repositioned", { data: { stationId: res.stationId, song: res.song } }]
+			args: [
+				"event:manageStation.queue.song.repositioned",
+				{ data: { stationId: res.stationId, song: res.song } }
+			]
 		});
 	}
 });

+ 1 - 0
backend/logic/mail/schemas/passwordRequest.js

@@ -1,3 +1,4 @@
+import config from "config";
 import mail from "../index";
 
 /**

+ 1 - 0
backend/logic/mail/schemas/resetPasswordRequest.js

@@ -1,3 +1,4 @@
+import config from "config";
 import mail from "../index";
 
 /**