Minor improvements to Paddle-Node

This commit is contained in:
Jan Oberhauser
2020-08-25 10:51:16 +02:00
parent 72102faed5
commit 5def03855b
7 changed files with 106 additions and 114 deletions

View File

@@ -4,11 +4,11 @@ import {
import {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
ILoadOptionsFunctions,
INodePropertyOptions
} from 'n8n-workflow';
import {
@@ -163,7 +163,7 @@ export class Paddle implements INodeType {
const products = await paddleApiRequest.call(this, endpoint, 'POST', {});
// Alert user if there's no products present to be loaded into payments property
if ( products.length === 0) {
if (products.length === 0) {
throw Error('No products on account.');
}