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

Promise returns undefined instead of a record #3

Open
carpiediem opened this issue Aug 21, 2018 · 1 comment
Open

Promise returns undefined instead of a record #3

carpiediem opened this issue Aug 21, 2018 · 1 comment

Comments

@carpiediem
Copy link

The readme file indicates that the promise returned by updateOrCreate() will resolve to an instance of the model, but I'm only ever getting undefined (just like create() and update()). This behavior is fine, but the documentation should probably be updated. Better yet, the fetch() chained method could be added as a feature here, to match the other Sails 1.0 methods.

@gianco
Copy link

gianco commented Sep 7, 2018

Just encountered the same issue.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants