title: Parse Server Cloud Code Update User
body: <p>I am attempting to update a parse user field and the function stops in the middle of it:</p>
  
  <pre><code>Parse.Cloud.define("modifyAdminStatus", function(request, response) {
  
  var userQuery = new Parse.Query(Parse.User);
  var isAdmin = request.params.adminStatus;
  console.log("isAdmin:" + isAdmin);
  userQuery.equalTo("username", request.params.username);
  userQuery.find({ useMasterKey: true,
      success: function(user) {
          console.log(user.length);
          console.log("Got User")
          console.log(user);
          user.set("isAdmin", isAdmin);
          console.log("Set Status");
          user.save(null, {useMasterKey: true,
              success: function(user) {
                  response.success();
              },
              error: function(error) {
                  response.error(error.message);
              }
          });
      },
      error: function(error) {
          response.error(error.message);
      }
  });
  });
  </code></pre>
  
  <p>I dont get any syntax errors, when i run the code i get:</p>
  
  <pre><code>1
  Got User
  [ ParseUser { _objCount: 2, className: '_User', id: '2vigcitsl6' } ]
  </code></pre>
  
  <p>in my console. However, it seems to stop the code after i attempt to set the admin status. I have tried running it using useMasterKey but that didnt do anything so maybe I'm missing something and where the useMasterKey should go?</p>