mirror of
https://github.com/status-im/autobounty.git
synced 2025-01-09 05:31:58 +00:00
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) {
|
const needsFunding = function (req) {
|
||||||
if (req.body.action !== 'created' || !req.body.hasOwnProperty('comment')) {
|
if (req.body.action === 'edited' || !req.body.hasOwnProperty('comment')) {
|
||||||
return false
|
return false
|
||||||
} else if (req.body.comment.user.login !== config.githubUsername) {
|
} else if (req.body.comment.user.login !== config.githubUsername) {
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user