1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-23 11:08:31 +09:00
cherrypick/src/processor/http/index.ts
2018-04-02 18:36:47 +09:00

14 lines
370 B
TypeScript

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