node-js-jwt-auth
node-js-jwt-auth copied to clipboard
Unhandled rejection typeerror: user.setRoles is not a function
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?
We configure many-to-many relationship in app/models/index.js.
ok