-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add isDraft column when fetching articles #71
base: develop
Are you sure you want to change the base?
Conversation
@@ -237,7 +238,6 @@ class ArticleController { | |||
|
|||
if (req.originalUrl === '/api/v1/articles/user') { |
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.
Get drafts from /api/v1/articles/user/?isDraft=true
or false
@andrewinsoul You are yet to implement the change I requested. Any reasons? |
src/controller/articlesController.js
Outdated
}; | ||
const offset = (paginate.page * paginate.limit) - paginate.limit; | ||
const offset = paginate.page * paginate.limit - paginate.limit; |
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 mix of '*' and '-' no-mixed-operators
What does this PR do?
This PR adds necessary columns when a user tries to get all his articles
Description of Task completed