Resolve #4444
This commit is contained in:
parent
00c9f4a2e5
commit
c934987b14
13 changed files with 146 additions and 174 deletions
20
src/queue/processors/db/index.ts
Normal file
20
src/queue/processors/db/index.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import * as Bull from 'bull';
|
||||
import { deleteNotes } from './delete-notes';
|
||||
import { deleteDriveFiles } from './delete-drive-files';
|
||||
import { exportNotes } from './export-notes';
|
||||
import { exportFollowing } from './export-following';
|
||||
import { exportMute } from './export-mute';
|
||||
import { exportBlocking } from './export-blocking';
|
||||
|
||||
const jobs = {
|
||||
deleteNotes,
|
||||
deleteDriveFiles,
|
||||
exportNotes,
|
||||
exportFollowing,
|
||||
exportMute,
|
||||
exportBlocking,
|
||||
} as any;
|
||||
|
||||
export default function(job: Bull.Job, done: any) {
|
||||
jobs[job.data.type](job, done);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue