diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-07 23:07:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-07 23:07:21 +0900 |
| commit | c934987b14dc2b0c362f2d13e0664ab275aca522 (patch) | |
| tree | 4a83b3a22745c9b5ad991a5f7c61d7acee0eba77 /src/queue/processors/index.ts | |
| parent | Update issue templates (diff) | |
| download | sharkey-c934987b14dc2b0c362f2d13e0664ab275aca522.tar.gz sharkey-c934987b14dc2b0c362f2d13e0664ab275aca522.tar.bz2 sharkey-c934987b14dc2b0c362f2d13e0664ab275aca522.zip | |
Resolve #4444
Diffstat (limited to 'src/queue/processors/index.ts')
| -rw-r--r-- | src/queue/processors/index.ts | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/queue/processors/index.ts b/src/queue/processors/index.ts deleted file mode 100644 index 31e87c3f67..0000000000 --- a/src/queue/processors/index.ts +++ /dev/null @@ -1,31 +0,0 @@ -import deliver from './http/deliver'; -import processInbox from './http/process-inbox'; -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'; -import { queueLogger } from '../logger'; - -const handlers: any = { - deliver, - processInbox, - deleteNotes, - deleteDriveFiles, - exportNotes, - exportFollowing, - exportMute, - exportBlocking, -}; - -export default (job: any, done: any) => { - const handler = handlers[job.data.type]; - - if (handler) { - handler(job, done); - } else { - queueLogger.error(`Unknown job: ${job.data.type}`); - done(); - } -}; |