fix: Lazy load nodes for credentials testing (#4760)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-11-30 10:28:18 +01:00
committed by GitHub
parent 3d67df490c
commit 0a7a2f3e41
16 changed files with 132 additions and 123 deletions

View File

@@ -221,7 +221,7 @@ export class Mocean implements INodeType {
let endpoint: string;
let operation: string;
let requesetMethod: string;
let requestMethod: string;
let resource: string;
let text: string;
let dlrUrl: string;
@@ -238,7 +238,7 @@ export class Mocean implements INodeType {
resource = this.getNodeParameter('resource', itemIndex, '') as string;
operation = this.getNodeParameter('operation', itemIndex, '') as string;
text = this.getNodeParameter('message', itemIndex, '') as string;
requesetMethod = 'POST';
requestMethod = 'POST';
body['mocean-from'] = this.getNodeParameter('from', itemIndex, '') as string;
body['mocean-to'] = this.getNodeParameter('to', itemIndex, '') as string;
@@ -271,13 +271,7 @@ export class Mocean implements INodeType {
}
if (operation === 'send') {
const responseData = await moceanApiRequest.call(
this,
requesetMethod,
endpoint,
body,
qs,
);
const responseData = await moceanApiRequest.call(this, requestMethod, endpoint, body, qs);
for (const item of responseData[dataKey] as IDataObject[]) {
item.type = resource;