paricafe/src/processor/http/index.ts

12 lines
310 B
TypeScript
Raw Normal View History

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';
import reportGitHubFailure from './report-github-failure';
const handlers = {
2018-04-01 05:43:26 -05:00
follow,
2018-03-31 05:55:00 -05:00
performActivityPub,
reportGitHubFailure,
};
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);