@pokash/n8n-nodes-optima-rest-api 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @pokash/n8n-nodes-optima-rest-api might be problematic. Click here for more details.
|
@@ -304,7 +304,7 @@ class OptimaRestApi {
|
|
|
304
304
|
// First, authenticate and get token
|
|
305
305
|
const loginResponse = await this.helpers.request({
|
|
306
306
|
method: 'POST',
|
|
307
|
-
url: `${gatewayUrl}/api/
|
|
307
|
+
url: `${gatewayUrl}/api/account/login`,
|
|
308
308
|
body: {
|
|
309
309
|
username: credentials.username,
|
|
310
310
|
password: credentials.password,
|
|
@@ -313,7 +313,7 @@ class OptimaRestApi {
|
|
|
313
313
|
},
|
|
314
314
|
json: true,
|
|
315
315
|
});
|
|
316
|
-
const token = loginResponse.
|
|
316
|
+
const token = loginResponse.Token;
|
|
317
317
|
for (let i = 0; i < items.length; i++) {
|
|
318
318
|
try {
|
|
319
319
|
if (resource === 'customer') {
|