🐛 Fix iteration on CoinGecko-Node

This commit is contained in:
Jan Oberhauser 2021-01-08 15:47:57 +01:00
parent b33b7bdd52
commit 043385df33

View file

@ -526,12 +526,13 @@ export class CoinGecko implements INodeType {
}
}
if (Array.isArray(responseData)) {
returnData.push.apply(returnData, responseData as IDataObject[]);
} else if (responseData !== undefined) {
returnData.push(responseData as IDataObject);
}
}
if (Array.isArray(responseData)) {
returnData.push.apply(returnData, responseData as IDataObject[]);
} else if (responseData !== undefined) {
returnData.push(responseData as IDataObject);
}
return [this.helpers.returnJsonArray(returnData)];
}
}