Fix needle typo

This commit is contained in:
Jesús Ángel González 2018-03-19 13:18:56 +01:00 committed by Javier Castro
parent b4cdc98552
commit cd8d7e0aaa

View File

@ -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);