2018-04-02 14:16:13 +03:00
|
|
|
import deliverPost from './deliver-post';
|
2018-04-01 13:43:26 +03:00
|
|
|
import follow from './follow';
|
2018-03-31 13:55:00 +03:00
|
|
|
import performActivityPub from './perform-activitypub';
|
2018-04-02 12:36:47 +03:00
|
|
|
import processInbox from './process-inbox';
|
2018-03-31 13:55:00 +03:00
|
|
|
import reportGitHubFailure from './report-github-failure';
|
|
|
|
|
|
|
|
const handlers = {
|
2018-04-02 14:16:13 +03:00
|
|
|
deliverPost,
|
2018-04-01 13:43:26 +03:00
|
|
|
follow,
|
2018-03-31 13:55:00 +03:00
|
|
|
performActivityPub,
|
2018-04-02 12:36:47 +03:00
|
|
|
processInbox,
|
2018-03-31 13:55:00 +03:00
|
|
|
reportGitHubFailure,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);
|