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": {}
}