👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 15:46:03 +02:00
parent 5b7efd67ca
commit 40c2acd77b
491 changed files with 4045 additions and 3936 deletions

View File

@@ -187,11 +187,11 @@ export class GraphQL implements INodeType {
default: '',
description: 'Value to set for the header.',
},
]
],
},
],
},
]
],
};
@@ -212,13 +212,13 @@ export class GraphQL implements INodeType {
.getNodeParameter('headerParametersUi', itemIndex, {}) as IDataObject;
const headerParameters = (parameter || []).reduce((result, item) => ({
...result,
[item.name]: item.value
[item.name]: item.value,
}), {});
requestOptions = {
headers: {
'content-type': `application/${requestFormat}`,
...headerParameters
...headerParameters,
},
method: requestMethod,
uri: endpoint,
@@ -229,7 +229,7 @@ export class GraphQL implements INodeType {
const gqlQuery = this.getNodeParameter('query', itemIndex, '') as string;
if (requestMethod === 'GET') {
requestOptions.qs = {
query: gqlQuery
query: gqlQuery,
};
} else {
if (requestFormat === 'json') {
@@ -261,7 +261,7 @@ export class GraphQL implements INodeType {
returnItems.push({
json: {
[dataPropertyName]: response,
}
},
});
} else {
if (typeof response === 'string') {