From 96648b651eaab8b37dc809ec48acb09bce834ea1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 30 Jan 2020 05:56:14 +0900 Subject: isMarkedAsClosed --> isSuspended --- src/queue/processors/deliver.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/queue') diff --git a/src/queue/processors/deliver.ts b/src/queue/processors/deliver.ts index 980ca3a437..16b2f6e29a 100644 --- a/src/queue/processors/deliver.ts +++ b/src/queue/processors/deliver.ts @@ -21,15 +21,15 @@ export default async (job: Bull.Job) => { return 'skip (blocked)'; } - // closedなら中断 - const closedHosts = await Instances.find({ + // isSuspendedなら中断 + const suspendedHosts = await Instances.find({ where: { - isMarkedAsClosed: true + isSuspended: true }, cache: 60 * 1000 }); - if (closedHosts.map(x => x.host).includes(toPuny(host))) { - return 'skip (closed)'; + if (suspendedHosts.map(x => x.host).includes(toPuny(host))) { + return 'skip (suspended)'; } try { -- cgit v1.2.3-freya