18 lines
454 B
TypeScript
18 lines
454 B
TypeScript
import deliverPost from './deliver-post';
|
|
import follow from './follow';
|
|
import performActivityPub from './perform-activitypub';
|
|
import processInbox from './process-inbox';
|
|
import reportGitHubFailure from './report-github-failure';
|
|
import unfollow from './unfollow';
|
|
|
|
const handlers = {
|
|
deliverPost,
|
|
follow,
|
|
performActivityPub,
|
|
processInbox,
|
|
reportGitHubFailure,
|
|
unfollow
|
|
};
|
|
|
|
export default (job, done) => handlers[job.data.type](job, done);
|