summaryrefslogtreecommitdiff
path: root/src/queue/processors/object-storage/index.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-05-11 14:39:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-05-11 14:39:40 +0900
commitf96c60c1a0374aabeecbe82c15d7e3373efed8eb (patch)
tree59b136dff0287f74166b385d6de811d83b1f455a /src/queue/processors/object-storage/index.ts
parentMerge branch 'develop' (diff)
parent12.81.0 (diff)
downloadmisskey-f96c60c1a0374aabeecbe82c15d7e3373efed8eb.tar.gz
misskey-f96c60c1a0374aabeecbe82c15d7e3373efed8eb.tar.bz2
misskey-f96c60c1a0374aabeecbe82c15d7e3373efed8eb.zip
Merge branch 'develop'
Diffstat (limited to 'src/queue/processors/object-storage/index.ts')
-rw-r--r--src/queue/processors/object-storage/index.ts5
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);
}
}