-
Notifications
You must be signed in to change notification settings - Fork 8
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
167942408 get related articles #63
167942408 get related articles #63
Conversation
['createdAt', 'DESC'] | ||
] | ||
} | ||
); |
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.
Unexpected newline before ')' function-paren-newline
controllers/articles/index.js
Outdated
error: 'Category not found' | ||
}); | ||
} | ||
const foundArticle = await db.Article.findAndCountAll( |
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.
Unexpected newline after '(' function-paren-newline
name: req.params.category | ||
} | ||
} | ||
); |
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.
Unexpected newline before ')' function-paren-newline
|
||
getRelatedArticles: async (req, res) => { | ||
try { | ||
const foundCategory = await db.Category.findOne( |
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.
Unexpected newline after '(' function-paren-newline
66ed00f
to
42ecfd6
Compare
error: 'Category not found' | ||
}); | ||
} | ||
const foundArticles = await db.Article.findAndCountAll( |
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.
Unexpected newline after '(' function-paren-newline
42ecfd6
to
b8e7172
Compare
- add get related articles route - add get related articles controller - add validation [Delivers #167942408]
b8e7172
to
451e74f
Compare
Description
Type of change
Please select the relevant option
How Has This Been Tested?
please describe the test that you ran to verify your changes
Checklist:
Pivotal Tracker
#167942408