Browse Source

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

Owen Diffey 2 năm trước cách đây
mục cha
commit
84519e6ad7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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