Skip to content

UserSchema.pre in MEAN - Login & Registration #23

@dionnewest

Description

@dionnewest

Hey! I'm attending Coding Dojo at the DC Campus. THANK YOU for posting this demo!! it's extremely helpful as I'm trying to understand MEAN.

Around minute 33 in the video you run into an error on the UserSchema.pre function on the user.js page. The issue stems from the fact that the "(next) =>" function cannot accept "this". Even on the web page you referenced, they used the next function by typing it as "function(next)." I put that into my code and it worked well for me.

I hope this comment helps! Keep up the great work :)

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