-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to update an User with useMasterKey #4450
Comments
Your code looks good. The only thing I can think of is that you are not initializing parse with your master key.
Or perhaps "coins" is not a number field? |
did you really need to put your server url in the cloud code? all information is passed to the cloud functions automatically |
it seems like your problem occurs where your response.success() is called before any of your async functions calls are submitted. you can call response.success() at two spots, first in the else statement of status == "validated" and secondly in the success callback of your myUser.save rather than returning that promise. |
Yes, the problem was the "response.success()", thanks ! |
Issue Description
I'm trying to update an User when another user click on my Xamarin button.
Then, I used Cloud Code to perform this but it doesnt work
Steps to reproduce
Here is my complete JS code :
Expected Results
return myUser.save(null, {useMasterKey:true});
Should work
Actual Outcome
I actually have that error :
Environment Setup
The text was updated successfully, but these errors were encountered: