Skip to content

Cant't use findById after use scope function. #5

@danyfoo

Description

@danyfoo

When i execute a query in node, using a scope function and findById, like this:

ActionModel.byTenant(tenantId).findById(id, function (err, action) {
...
});

It throws this error:

{
    "message": "ActionModel.byTenant(...).findById is not a function",
    "error": {}
}

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