diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-11 14:39:40 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-11 14:39:40 +0900 |
| commit | f96c60c1a0374aabeecbe82c15d7e3373efed8eb (patch) | |
| tree | 59b136dff0287f74166b385d6de811d83b1f455a /src/queue/processors/db/index.ts | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.81.0 (diff) | |
| download | misskey-f96c60c1a0374aabeecbe82c15d7e3373efed8eb.tar.gz misskey-f96c60c1a0374aabeecbe82c15d7e3373efed8eb.tar.bz2 misskey-f96c60c1a0374aabeecbe82c15d7e3373efed8eb.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/queue/processors/db/index.ts')
| -rw-r--r-- | src/queue/processors/db/index.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/queue/processors/db/index.ts b/src/queue/processors/db/index.ts index 921cdf7ab1..b56b7bfa2c 100644 --- a/src/queue/processors/db/index.ts +++ b/src/queue/processors/db/index.ts @@ -1,4 +1,5 @@ import * as Bull from 'bull'; +import { DbJobData } from '@/queue/types'; import { deleteDriveFiles } from './delete-drive-files'; import { exportNotes } from './export-notes'; import { exportFollowing } from './export-following'; @@ -17,10 +18,10 @@ const jobs = { exportUserLists, importFollowing, importUserLists -} as any; +} as Record<string, Bull.ProcessCallbackFunction<DbJobData> | Bull.ProcessPromiseFunction<DbJobData>>; -export default function(dbQueue: Bull.Queue) { +export default function(dbQueue: Bull.Queue<DbJobData>) { for (const [k, v] of Object.entries(jobs)) { - dbQueue.process(k, v as any); + dbQueue.process(k, v); } } |