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

TypeError: ids.filter is not a function #159

Open
atherdon opened this issue Jan 22, 2018 · 1 comment
Open

TypeError: ids.filter is not a function #159

atherdon opened this issue Jan 22, 2018 · 1 comment
Assignees
Labels

Comments

@atherdon
Copy link
Collaborator

https://sentry.io/atherdon/rapi/issues/438402486/

TypeError: ids.filter is not a function
  File "F:\code\NMTG\recipe-api-only\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\relation-definition.js", line 3128, in ModelConstructor.modelFrom.validate.code
    var uniqueIds = ids.filter(function(id, pos) {
  File "F:\code\NMTG\recipe-api-only\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\validations.js", line 382, in ModelConstructor.validateCustom
    conf.customValidator.call(this, err, done);
  File "F:\code\NMTG\recipe-api-only\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\validations.js", line 656, in validationFailed
    validator.apply(inst, validatorArguments);
  File "F:\code\NMTG\recipe-api-only\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\validations.js", line 546, in null.<anonymous>
    if (validationFailed(inst, attr, v)) {
  File "F:\code\NMTG\recipe-api-only\node_modules\loopback\node_modules\loopback-datasource-juggler\lib\validations.js", line 538, in null.<anonymous>
    attrValidations.forEach(function(v) {
...
(53 additional frame(s) were not displayed)

TypeError: ids.filter is not a function
@atherdon atherdon self-assigned this Jan 22, 2018
@atherdon
Copy link
Collaborator Author

to be honest - i cannot recreate this function again. maybe it's because i remove validation from models...

@atherdon atherdon added the bug label Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant