Parcourir la source

fix(media): getRatings not available to logged out users

Owen Diffey il y a 2 ans
Parent
commit
84519e6ad7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      backend/logic/actions/media.js

+ 2 - 2
backend/logic/actions/media.js

@@ -704,7 +704,7 @@ export default {
 	 * @param cb
 	 */
 
-	getRatings: isLoginRequired(async function getRatings(session, youtubeId, cb) {
+	async getRatings(session, youtubeId, cb) {
 		async.waterfall(
 			[
 				next => {
@@ -742,7 +742,7 @@ export default {
 				});
 			}
 		);
-	}),
+	},
 
 	/**
 	 * Gets user's own ratings