return response.json()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
db82d75dc8
commit
74d6f6d488
@ -26,11 +26,9 @@ module.exports = async (client, apex, app) => {
|
|||||||
headers: { 'User-Agent': constant.agent },
|
headers: { 'User-Agent': constant.agent },
|
||||||
signal: ac.signal,
|
signal: ac.signal,
|
||||||
keepalive: false,
|
keepalive: false,
|
||||||
timeout: constant.timeout
|
timeout: constant.timeout,
|
||||||
}),
|
})
|
||||||
json = await response.json()
|
return await response.json()
|
||||||
// setImmediate(() => { ac.abort() })
|
|
||||||
return json
|
|
||||||
},
|
},
|
||||||
scanInstance = async instance => {
|
scanInstance = async instance => {
|
||||||
const json = await requestPart(`https://${instance}/api/v1/instance/domain_blocks`)
|
const json = await requestPart(`https://${instance}/api/v1/instance/domain_blocks`)
|
||||||
|
Loading…
Reference in New Issue
Block a user