mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 10:53:08 +02:00
11 lines
310 B
TypeScript
11 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);
|