Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
demozlx committed Aug 23, 2019
1 parent 940d2a1 commit 4efaa19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ app.use('/issues/new', function(req, res) {
"content": `> ${payload.sender.login} created a new issue \r\n\r\n [Click here for details](${payload.issue.url})`
}
},
function(err,httpResponse,body) {
function(error, response, body) {
if (error) {console.log('error:', error)}
if (!error && response.statusCode == 200 && body) {
console.log('successful send messgae to wechat');
}
Expand Down

0 comments on commit 4efaa19

Please sign in to comment.