misskey/src/queue/processors/db/index.ts

8 lines
193 B
TypeScript

import deletePostDependents from './delete-post-dependents';
const handlers = {
deletePostDependents
};
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);