Sharkey/src/queue/processors/object-storage/index.ts

13 lines
228 B
TypeScript
Raw Normal View History

2019-05-27 10:54:47 +03:00
import * as Bull from 'bull';
import deleteFile from './delete-file';
const jobs = {
deleteFile,
} as any;
export default function(q: Bull.Queue) {
for (const [k, v] of Object.entries(jobs)) {
q.process(k, v as any);
}
}