Skip to content

Commit

Permalink
fix(job queue): whitelist stale inital pr reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
Realtin committed Jul 25, 2017
1 parent 869766d commit 4bf83a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ require('./lib/rollbar')
async function consume (job) {
const data = JSON.parse(job.content.toString())

if (data.name === 'registry-change' || data.name === 'stripe-event') return queues[data.name].add(() => worker(job))
if (data.name === 'registry-change' ||
data.name === 'stripe-event' ||
data.name === 'schedule-stale-initial-pr-reminders') {
return queues[data.name].add(() => worker(job))
}

let queueId = Number(data.accountId) ||
_.get(data, 'repository.owner.id') ||
Expand Down

0 comments on commit 4bf83a5

Please sign in to comment.