Skip to content

Commit 93754e8

Browse files
committed
fix: update credentials usage
1 parent 121ccc3 commit 93754e8

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

Diff for: credentials/ShopwareAdminCredentialsApi.credentials.ts

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class ShopwareAdminCredentialsApi implements ICredentialType {
6363
...requestOptions.headers,
6464
Authorization: `Bearer ${access_token}`,
6565
},
66+
baseURL: credentials.domain as string,
6667
};
6768

6869
return requestOptionsWithAuth;

Diff for: nodes/ShopwareAdminNode/ShopwareAdminNode.node.ts

-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ export class ShopwareAdminNode implements INodeType {
2626
required: true,
2727
},
2828
],
29-
requestDefaults: {
30-
headers: {
31-
Accept: 'application/json',
32-
'Content-Type': 'application/json',
33-
},
34-
baseURL: '={{$credentials.domain}}/api',
35-
},
3629
properties,
3730
};
3831
}

Diff for: package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@c0d3bl1ck/n8n-nodes-shopware",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Community nodes to connect Shopware 6 with n8n.",
55
"keywords": [
66
"n8n-community-node-package"

0 commit comments

Comments
 (0)