-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
I have a simple Cloud Function:
Parse.Cloud.define('testQuery', function(request, response) {
var user = request.user;
response.success("user.get('data') = " + user.get('data'));
});
And a simple function call from Android SDK:
ParseCloud.callFunctionInBackground("testQuery", new HashMap<String, Object>(), new FunctionCallback<String>() {
@Override
public void done(String result, ParseException e) {
if (e == null) {
Log.d("testQuery", result);
}
}
});
Let's say the value "data" of my User object is "AAA". I call the function from Android SDK. Parse.com's server and self-hosted server both return user.get('data') = AAA
.
Now I change the value of "data" to "BBB" from Dashboard, and call the function again. The results are different. Parse.com's server returns user.get('data') = BBB
as expected, but the self-hosted server still returns user.get('data') = AAA
.
Is it a correct behavior of the new Parse-Server or is it a bug? And if it's a correct behavior, how can I get the up-to-date data of request.user. Thanks.
Metadata
Metadata
Assignees
Labels
No labels