Filtering incoming requests by edited action
This commit is contained in:
parent
1c2ad61055
commit
bbad087a01
|
@ -22,7 +22,7 @@ const logger = winston.createLogger({
|
|||
|
||||
|
||||
const needsFunding = function (req) {
|
||||
if (req.body.action !== 'created' || !req.body.hasOwnProperty('comment')) {
|
||||
if (req.body.action === 'edited' || !req.body.hasOwnProperty('comment')) {
|
||||
return false
|
||||
} else if (req.body.comment.user.login !== config.githubUsername) {
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue