mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-24 03:28:43 +09:00
18 lines
473 B
TypeScript
18 lines
473 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).then(() => done(), done);
|