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

User and Stack Routes Structured #129

Merged
merged 4 commits into from
Jun 23, 2018
Merged

User and Stack Routes Structured #129

merged 4 commits into from
Jun 23, 2018

Conversation

shivamarora96
Copy link
Collaborator

No description provided.

shivamarora96 and others added 3 commits June 4, 2018 20:44
@shivamarora96
Copy link
Collaborator Author

#106

@shivamarora96
Copy link
Collaborator Author

@tharindupr Please have a look at the PR

@psnmissaka psnmissaka self-requested a review June 13, 2018 13:11
@psnmissaka psnmissaka self-assigned this Jun 13, 2018
@psnmissaka
Copy link
Collaborator

Fix this warning in the PR as well WARNING: The useMongoClient option is no longer necessary in mongoose 5.x, please remove it.

const validator = new Validator(request.body);
const input = validator.validateCreateStack();
console.log('Input : ', input);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the console log

@psnmissaka
Copy link
Collaborator

psnmissaka commented Jun 13, 2018

Not related to this issue but in the API endpoint localhost:8080/api/post/create, validator is not working properly. The reason is due to validator checking for an attribute called link_issue. The attribute should be linkIssue

Copy link
Collaborator

@psnmissaka psnmissaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @shivamarora96 Check the comments I have added and once they are fixed we can go ahead with the merge.

@shivamarora96
Copy link
Collaborator Author

Sure @psnmissaka

1. Add option to db.connect if mongoose version is less than 5

2. Post create validation improved 

3. un-necessary Console.log removed
@shivamarora96
Copy link
Collaborator Author

@psnmissaka @tharindupr changes made, kindly review it. #106

@psnmissaka psnmissaka merged commit aa9f4d6 into scorelab:master Jun 23, 2018
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

Successfully merging this pull request may close these issues.

3 participants