You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
Issue Description
When attempting to retrieve a user to update, I cannot update my admin field. My javascript code stops after calling the user but it will not allow me to update fields. I have attempted using the master key and I am still unable to actually load the user.
@Treverr the query's find() method returns an array of objects - in this case, users... you even log to the console how many objects are in that array (1), and you can see that it logs with [] indicating it's an array and not a single object.
You have two options:
1 - declare users or results as the object returned by the query, and access the first result as: var user = results[0];
2 - simply use the query's first() method, that already gives you a single object.
We use GitHub Issues for bugs.
If you have a non-bug question, ask on Stack Overflow or Server Fault:
You may also search through existing issues before opening a new one: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
Issue Description
When attempting to retrieve a user to update, I cannot update my admin field. My javascript code stops after calling the user but it will not allow me to update fields. I have attempted using the master key and I am still unable to actually load the user.
Steps to reproduce
`Parse.Cloud.define("modifyAdminStatus", function(request, response) {
});`
The output I get in console is:
1 Got User [ ParseUser { _objCount: 46, className: '_User', id: '2vigcitsl6' } ]
Expected Results
Update and save the user
Actual Outcome
Code is stopped and does not update the user
Environment Setup
Server
Database
Logs/Trace
Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.
The text was updated successfully, but these errors were encountered: