From cd8d7e0aaa088b4a886c8af5bcf595b8aa516019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Mon, 19 Mar 2018 13:18:56 +0100 Subject: [PATCH] Fix needle typo --- server/monitoring.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/monitoring.js b/server/monitoring.js index 7ad47d1c4..58bb5f10d 100644 --- a/server/monitoring.js +++ b/server/monitoring.js @@ -53,7 +53,7 @@ module.exports = (server, options) => { rejectUnauthorized: !apiEntry.insecure }; - const response = await needle.request('get', `${getPath(apiEntry)}/agents`, payload, options); + const response = await needle('get', `${getPath(apiEntry)}/agents`, payload, options); if (!response.error && response.body.data.items) { agentsArray = agentsArray.concat(response.body.data.items);