mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Remove old external request code from Chargebee-Node
This commit is contained in:
parent
8f9a27ed10
commit
b0294f9394
|
@ -7,7 +7,6 @@ import {
|
|||
NodeParameterValue,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import * as requestPromise from 'request-promise-native';
|
||||
|
||||
interface CustomProperty {
|
||||
name: string;
|
||||
|
@ -614,7 +613,7 @@ export class Chargebee implements INodeType {
|
|||
json: true
|
||||
};
|
||||
|
||||
const responseData = await requestPromise(options);
|
||||
const responseData = await this.helpers.request!(options);
|
||||
|
||||
if (resource === 'invoice' && operation === 'list') {
|
||||
responseData.list.forEach((data: IDataObject) => {
|
||||
|
|
Loading…
Reference in a new issue