Skip to content

Comments

John 09-LAB#12

Open
JohnScarrow wants to merge 3 commits intocodefellows-javascript-401d17:masterfrom
JohnScarrow:master
Open

John 09-LAB#12
JohnScarrow wants to merge 3 commits intocodefellows-javascript-401d17:masterfrom
JohnScarrow:master

Conversation

@JohnScarrow
Copy link

No description provided.

.catch(err => Promise.reject(err));
}

exports.deleteItem = function (schemaName, item) {
Copy link

Choose a reason for hiding this comment

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

delete item should have property to fetch item by id; the whole item object is not supposed to pass in the request.

@bhavyaab
Copy link

bhavyaab commented Aug 1, 2017

add .node_modules folder to .gitignore file so that it would not be on the repo.

});
router.delete('/api/car', function (req, res) {
try {
var car = null;
Copy link

@bhavyaab bhavyaab Aug 1, 2017

Choose a reason for hiding this comment

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

the 'var car' is never get reassigned;
delete api will be called with a query parameter 'id' and other params will not be provided

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.

2 participants