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