mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-26 17:36:28 -07: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);
|
||
|
}
|
||
|
}
|