浏览代码

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

Owen Diffey 2 年之前
父节点
当前提交
84519e6ad7
共有 1 个文件被更改,包括 2 次插入2 次删除
  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