Improve drive management

This commit is contained in:
syuilo 2019-05-27 16:54:47 +09:00
parent 9403ee6495
commit 72fb23f4d5
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
14 changed files with 152 additions and 54 deletions

View file

@ -0,0 +1,12 @@
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);
}
}