mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user