javascript - Success/error was not called - Parse Code 141 -


i'm trying query user class of parse passing in users object id, pass in second object id string, , save second id string user.

the function below works in modified way when not trying access user class i'm not sure what's going on error keep receiving code 141 - success/error not called

  parse.cloud.define("savedeeplinkedmatchtouser", function(request, response) {   var query = new parse.query(parse.user);   query.get(request.params.userid, {     success: function(result) {       result.set("currentmatches", request.params.matchobjectid);       result.save(null, {         success: function(user) {           response.success(user);         }       });     },     error: function() {       response.error("could not find");     }   }); }); 

the code fail if user being saved not requesting user. can force permission adding parse.cloud.usemasterkey();


Comments