-
Notifications
You must be signed in to change notification settings - Fork 9
Cookbook/data objects #186
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #186 +/- ##
=========================================
- Coverage 35.09% 30.6% -4.49%
=========================================
Files 106 114 +8
Lines 3243 4283 +1040
=========================================
+ Hits 1138 1311 +173
- Misses 2105 2972 +867 |
|
Labels for PR please. |
| data.authors.create({ name, books: ids }) | ||
| .then(res => { | ||
| response.json(res) | ||
| }).catch(({ data, status }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
catch should be in a new line
| }).catch(({ data, status }) => { | ||
| response.json(data, status) | ||
| }) | ||
| }).catch(({ data, status }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
| data.authors.with('books') | ||
| .list() | ||
| .then(objects => { | ||
| response.json(objects) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add here return respo... this a better practice
| .then(res => { | ||
| response.json(res) | ||
| }).catch(({ data, status }) => { | ||
| response.json(data, status) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add here return respo... this a better practice (and everywhere bellow)
|
@mkucharz done |
No description provided.