Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created September 16, 2020 14:53
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 BetterProgramming/32c761eff4f28ee23c11fe897c7eabc3 to your computer and use it in GitHub Desktop.
Save BetterProgramming/32c761eff4f28ee23c11fe897c7eabc3 to your computer and use it in GitHub Desktop.
exports.saveUser = async (req, res) => {
logger.info("invoking saveUser()")
//implementation
logger.debug(`saving user to the database ${userModel.save(req.body)}`) //changes application state
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment