Created
June 24, 2019 11:28
-
-
Save dimlucas/16a9871808d02fcaa21ea590c0e0750e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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