Skip to content

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

@jetro4u

Description

@jetro4u

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions