2018-04-04 16:07:07 +00:00
|
|
|
import deliver from './deliver';
|
2018-04-02 09:36:47 +00:00
|
|
|
import processInbox from './process-inbox';
|
2018-03-31 10:55:00 +00:00
|
|
|
import reportGitHubFailure from './report-github-failure';
|
|
|
|
|
|
|
|
const handlers = {
|
2018-04-04 16:07:07 +00:00
|
|
|
deliver,
|
2018-04-02 09:36:47 +00:00
|
|
|
processInbox,
|
2018-03-31 10:55:00 +00:00
|
|
|
reportGitHubFailure,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);
|