-
-
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
request.user.id fails in User afterSave #384
Comments
Hi @jiawenzhang, this is a known bug, see #373 |
That is correct. Thanks for helping with the issues! |
this is not entirely fixed. if I am creating a new user, request.user.id still fails in afterSave, if it is an existing user, it works. |
You could use request.object.id in _User afterSave hook meanwhile |
@Tibabal that works, thanks; |
🎉 This change has been released in version 7.0.0-alpha.20 |
🎉 This change has been released in version 6.5.0 |
🎉 This change has been released in version 7.0.0-beta.1 |
🎉 This change has been released in version 7.0.0 |
Parse.Cloud.afterSave(Parse.User, function(request) {
Parse.Cloud.useMasterKey();
var userId = request.user.id // this fails
...
})
The text was updated successfully, but these errors were encountered: