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