Browse Source

Merge branch 'polishing' of github.com:Musare/MusareNode into polishing

Jonathan 4 years ago
parent
commit
e4f6d0e437
1 changed files with 3 additions and 1 deletions
  1. 3 1
      backend/logic/actions/songs.js

+ 3 - 1
backend/logic/actions/songs.js

@@ -971,7 +971,7 @@ export default {
 						}
 					)
 			],
-			async (err, { isLiked, isDisliked }) => {
+			async (err, ratings) => {
 				if (err) {
 					err = await UtilsModule.runJob("GET_ERROR", { error: err }, this);
 					this.log(
@@ -982,6 +982,8 @@ export default {
 					return cb({ status: "failure", message: err });
 				}
 
+				const { isLiked, isDisliked } = ratings;
+
 				return cb({
 					status: "success",
 					songId: musareSongId,