mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
Improve drive management
This commit is contained in:
12
src/queue/processors/object-storage/index.ts
Normal file
12
src/queue/processors/object-storage/index.ts
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user