@heines/n8n-nodes-pax8 0.3.0 → 0.4.0
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.
|
@@ -3097,7 +3097,9 @@ class Pax8 {
|
|
|
3097
3097
|
returnAll = this.getNodeParameter('returnAll', i, false);
|
|
3098
3098
|
maxResults = this.getNodeParameter('maxResults', i, 0);
|
|
3099
3099
|
}
|
|
3100
|
-
const
|
|
3100
|
+
const normalizedBase = baseUrl.replace(/\/+$/, '');
|
|
3101
|
+
const apiBase = normalizedBase.endsWith('/v1') ? normalizedBase : `${normalizedBase}/v1`;
|
|
3102
|
+
const url = `${apiBase}${applyPathParams(def.path, pathParams)}`;
|
|
3101
3103
|
const makeRequest = async (qs) => {
|
|
3102
3104
|
const options = {
|
|
3103
3105
|
method: def.method,
|