payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/rossberto/be-capstone2-expresso/issues/1","repository_url":"https://api.github.com/repos/rossberto/be-capstone2-expresso","labels_url":"https://api.github.com/repos/rossberto/be-capstone2-expresso/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rossberto/be-capstone2-expresso/issues/1/comments","events_url":"https://api.github.com/repos/rossberto/be-capstone2-expresso/issues/1/events","html_url":"https://github.com/rossberto/be-capstone2-expresso/issues/1","id":427360232,"node_id":"MDU6SXNzdWU0MjczNjAyMzI=","number":1,"title":"Use next(error) to handle errors when possible","user":{"login":"addubinski","id":22581734,"node_id":"MDQ6VXNlcjIyNTgxNzM0","avatar_url":"https://avatars0.githubusercontent.com/u/22581734?v=4","gravatar_id":"","url":"https://api.github.com/users/addubinski","html_url":"https://github.com/addubinski","followers_url":"https://api.github.com/users/addubinski/followers","following_url":"https://api.github.com/users/addubinski/following{/other_user}","gists_url":"https://api.github.com/users/addubinski/gists{/gist_id}","starred_url":"https://api.github.com/users/addubinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addubinski/subscriptions","organizations_url":"https://api.github.com/users/addubinski/orgs","repos_url":"https://api.github.com/users/addubinski/repos","events_url":"https://api.github.com/users/addubinski/events{/privacy}","received_events_url":"https://api.github.com/users/addubinski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-03-31T05:28:49Z","updated_at":"2019-04-24T14:18:20Z","closed_at":"2019-04-24T14:18:20Z","author_association":"NONE","body":"https://github.com/rossberto/be-capstone2-expresso/blob/a8c33f19867f3b1189fad6f94c670b919be2ad84/api/employees.js#L106\r\n\r\nUsing next(error) will invoke the default error handler from Express or invoke your custom error handler if you wrote one. Even if your intention was to invoke the default error handler by throwing an error, if you want to use a custom error handler later it becomes more difficult to change is as the app scales. For this reason it is a best practice with express to use next(error)."}}
other: {"actor":{"display_login":"rossberto"}}