Add user agent

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-03 08:01:53 +01:00
parent e2e695205a
commit 177d18f3d3

View File

@@ -7,6 +7,8 @@ import type {
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { version } from '../../package.json';
type ApiRequestFn = (
this: IExecuteFunctions | IHookFunctions,
query: string,
@@ -32,6 +34,7 @@ async function proboGraphqlRequest(
headers: {
Authorization: `Bearer ${credentials.apiKey}`,
'Content-Type': 'application/json',
'User-Agent': `probo-n8n-node/${version}`,
},
body: {
query,