Sharkey/src/processor/http/index.ts
2018-04-01 23:30:57 +09:00

12 lines
310 B
TypeScript

import follow from './follow';
import performActivityPub from './perform-activitypub';
import reportGitHubFailure from './report-github-failure';
const handlers = {
follow,
performActivityPub,
reportGitHubFailure,
};
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);