Skip to content

request.user.id fails in User afterSave when user is new #712

Closed
@jiawenzhang

Description

@jiawenzhang

the following cloud code fails at request.user.id when the user is new
it works when the user already exists.

Parse.Cloud.afterSave(Parse.User, function(request) {

var userId = request.user.id // fails
console.log("User saved, userId: " + userId);

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions