Remove old external request code from Chargebee-Node

This commit is contained in:
Jan Oberhauser 2019-08-10 18:14:34 +02:00
parent 8f9a27ed10
commit b0294f9394

View file

@ -7,7 +7,6 @@ import {
NodeParameterValue, NodeParameterValue,
} from 'n8n-workflow'; } from 'n8n-workflow';
import * as requestPromise from 'request-promise-native';
interface CustomProperty { interface CustomProperty {
name: string; name: string;
@ -614,7 +613,7 @@ export class Chargebee implements INodeType {
json: true json: true
}; };
const responseData = await requestPromise(options); const responseData = await this.helpers.request!(options);
if (resource === 'invoice' && operation === 'list') { if (resource === 'invoice' && operation === 'list') {
responseData.list.forEach((data: IDataObject) => { responseData.list.forEach((data: IDataObject) => {