diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-05-08 18:56:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 18:56:21 +0900 |
| commit | 591a5c277cdf197f043e5b24743dbdb346e65c4f (patch) | |
| tree | b84126eec671a7a1f1172b472cd9143060357f00 /src/queue/processors/object-storage/index.ts | |
| parent | Create get-index-stats.ts (diff) | |
| download | sharkey-591a5c277cdf197f043e5b24743dbdb346e65c4f.tar.gz sharkey-591a5c277cdf197f043e5b24743dbdb346e65c4f.tar.bz2 sharkey-591a5c277cdf197f043e5b24743dbdb346e65c4f.zip | |
Add queue types (#7504)
Diffstat (limited to 'src/queue/processors/object-storage/index.ts')
| -rw-r--r-- | src/queue/processors/object-storage/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/queue/processors/object-storage/index.ts b/src/queue/processors/object-storage/index.ts index 33ef665b38..0d9570e179 100644 --- a/src/queue/processors/object-storage/index.ts +++ b/src/queue/processors/object-storage/index.ts @@ -1,14 +1,15 @@ import * as Bull from 'bull'; +import { ObjectStorageJobData } from '@/queue/types'; import deleteFile from './delete-file'; import cleanRemoteFiles from './clean-remote-files'; const jobs = { deleteFile, cleanRemoteFiles, -} as any; +} as Record<string, Bull.ProcessCallbackFunction<ObjectStorageJobData> | Bull.ProcessPromiseFunction<ObjectStorageJobData>>; export default function(q: Bull.Queue) { for (const [k, v] of Object.entries(jobs)) { - q.process(k, 16, v as any); + q.process(k, 16, v); } } |