Skip to content
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

Unhandled rejection typeerror: user.setRoles is not a function #1

Open
jetro4u opened this issue Apr 16, 2020 · 2 comments
Open

Unhandled rejection typeerror: user.setRoles is not a function #1

jetro4u opened this issue Apr 16, 2020 · 2 comments

Comments

@jetro4u
Copy link

jetro4u commented Apr 16, 2020

Unhandled rejection typeerror: user.setRoles is not a function in the controller/auth.controller.js file.

The function setRoles in line 28 and getRoles in line 72 is not defined in the user model. Or is there another file where it is ommitted?

@bezkoder
Copy link
Owner

We configure many-to-many relationship in app/models/index.js.

@jetro4u
Copy link
Author

jetro4u commented Apr 24, 2020

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants