Skip to content

Mark test#2

Open
MarkCBall wants to merge 5 commits intoGBCBlockchain:krett/mongoosefrom
MarkCBall:markTest
Open

Mark test#2
MarkCBall wants to merge 5 commits intoGBCBlockchain:krett/mongoosefrom
MarkCBall:markTest

Conversation

@MarkCBall
Copy link

Please see my lab test as a pull request to David's latest work.

//if the callback function returns an error, let the next middleware error handler handle it
next();
//set the status of the operation to 202 to indicate the data was marked for deletion and end the response
res.status(202).end();

Choose a reason for hiding this comment

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

you need to encapsulate the if (err) because it will hit next() and then try to execute res.status

//if the callback function returns an error, let the next middleware error handler handle it
next();
//set the status of the operation to 202 to indicate the data updated was accepted
res.status(202).end();

Choose a reason for hiding this comment

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

same here

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