freeCodeCamp: [beta] Test fails in Perform New Updates on a Document Using model.findOneAndUpdate()
Challenge Name
Issue Description
The test does not pass. The glitch logs:
11:38 AM
process.nextTick(function() { throw err; });
11:38 AM
^
11:38 AM
11:38 AM
ReferenceError: data is not defined
11:38 AM
Jump to
at /app/server.js:197:11
Fix: in server.js line 197 move the statement
if(!data) {
console.log('Missing `done()` argument');
return next({message: 'Missing callback argument'});
}
in try {} after if(err) { return next(err) }
Browser Information
- Browser Name, Version: Chrome, 62.0.3202.94
- Operating System: Win 10
- Mobile, Desktop, or Tablet: Desktop
Your Code
Screenshot
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (14 by maintainers)
@raisedadead - Is this still open? If so, I can resolve it.