mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Lazy load nodes for credentials testing (#4760)
This commit is contained in:
committed by
GitHub
parent
3d67df490c
commit
0a7a2f3e41
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user