mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Update GraphQL.node.ts (#1185)
* Update GraphQL.node.ts Fix this * Update GraphQL.node.ts
This commit is contained in:
@@ -241,8 +241,8 @@ export class GraphQL implements INodeType {
|
|||||||
if (typeof requestOptions.body.variables === 'string') {
|
if (typeof requestOptions.body.variables === 'string') {
|
||||||
try {
|
try {
|
||||||
requestOptions.body.variables = JSON.parse(requestOptions.body.variables);
|
requestOptions.body.variables = JSON.parse(requestOptions.body.variables);
|
||||||
} catch {
|
} catch (e) {
|
||||||
requestOptions.body.variables = {};
|
throw new Error('Using variables failed:\n' + requestOptions.body.variables + '\n\nWith error message:\n' + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (requestOptions.body.operationName === '') {
|
if (requestOptions.body.operationName === '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user