summaryrefslogtreecommitdiff
path: root/src/queue/processors/deliver.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue/processors/deliver.ts')
-rw-r--r--src/queue/processors/deliver.ts10
1 files changed, 5 insertions, 5 deletions
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 {