-
-
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
User.get('username') undefined in afterSave Cloud function #836
Comments
2.1.4 afterSave for _User does not fetch full data. |
Still undefined in 2.1.5 |
Check with 2.1.6 that's just out? |
2.1.6 is not work, I'm finding my code is base on which commit. |
my base is bd89338 |
in add blow line, it will work I'm not sure why _finishFetch is gone |
_finishFetch has been replaced by updatedObject.set(Parse._decode(undefined, this.data)); Not sure why? |
seems updatedObject.set(Parse._decode(undefined, this.data)) not get the full data of user the data before updatedObject { createdAt: '2016-03-12T03:26:43.661Z', print by _finishFetch will get username but npm test failed miscellaneous afterSave flattens custom operations Hope this info is useful |
The fetch occurs earlier, for some reason, all the data is properly set before going into the trigger, but for some reason, the get() is not properly performed. |
I found the error. Proposing a fix soon |
Environment Setup
Version 2.1.4
Steps to reproduce
Cloud function:
Logs/Trace
When signing up a new user this returns
undefined
The text was updated successfully, but these errors were encountered: