Skip to content

Instantly share code, notes, and snippets.

@dimlucas
Created June 24, 2019 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimlucas/16a9871808d02fcaa21ea590c0e0750e to your computer and use it in GitHub Desktop.
Save dimlucas/16a9871808d02fcaa21ea590c0e0750e to your computer and use it in GitHub Desktop.
router.post("/", (req, res) => {
User.findOne({email: req.body.email}).then(user => {
//do something
}).catch(err => {
require("../../logger")(req).report(err);
});;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment