mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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') {
|
||||
try {
|
||||
requestOptions.body.variables = JSON.parse(requestOptions.body.variables);
|
||||
} catch {
|
||||
requestOptions.body.variables = {};
|
||||
} catch (e) {
|
||||
throw new Error('Using variables failed:\n' + requestOptions.body.variables + '\n\nWith error message:\n' + e);
|
||||
}
|
||||
}
|
||||
if (requestOptions.body.operationName === '') {
|
||||
|
||||
Reference in New Issue
Block a user