From 74d6f6d4889848d03d26082b196261c39752f050 Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 25 Sep 2024 00:21:39 +0200 Subject: [PATCH] return response.json() --- lib/fediblock.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/fediblock.js b/lib/fediblock.js index 71bd9fe..6d894bb 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -26,11 +26,9 @@ module.exports = async (client, apex, app) => { headers: { 'User-Agent': constant.agent }, signal: ac.signal, keepalive: false, - timeout: constant.timeout - }), - json = await response.json() - // setImmediate(() => { ac.abort() }) - return json + timeout: constant.timeout, + }) + return await response.json() }, scanInstance = async instance => { const json = await requestPart(`https://${instance}/api/v1/instance/domain_blocks`)