From 591a5c277cdf197f043e5b24743dbdb346e65c4f Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 8 May 2021 18:56:21 +0900 Subject: Add queue types (#7504) --- src/queue/processors/deliver.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/queue/processors/deliver.ts') diff --git a/src/queue/processors/deliver.ts b/src/queue/processors/deliver.ts index b167154fcd..f9c53fc8f1 100644 --- a/src/queue/processors/deliver.ts +++ b/src/queue/processors/deliver.ts @@ -10,6 +10,7 @@ import { fetchMeta } from '@/misc/fetch-meta'; import { toPuny } from '@/misc/convert-host'; import { Cache } from '@/misc/cache'; import { Instance } from '../../models/entities/instance'; +import { DeliverJobData } from '../types'; const logger = new Logger('deliver'); @@ -17,7 +18,7 @@ let latest: string | null = null; const suspendedHostsCache = new Cache(1000 * 60 * 60); -export default async (job: Bull.Job) => { +export default async (job: Bull.Job) => { const { host } = new URL(job.data.to); // ブロックしてたら中断 -- cgit v1.2.3-freya