mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
⚡ Fix some minor issue in AgileCRM
This commit is contained in:
@@ -24,6 +24,8 @@ export class AgileCrmApi implements ICredentialType {
|
|||||||
name: 'subdomain',
|
name: 'subdomain',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string' as NodePropertyTypes,
|
||||||
default: '',
|
default: '',
|
||||||
|
placeholder: 'example',
|
||||||
|
description: 'If the domain is https://example.agilecrm.com "example" would have to be entered.',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export async function agileCrmApiRequest(this: IHookFunctions | IExecuteFunction
|
|||||||
username: credentials!.email as string,
|
username: credentials!.email as string,
|
||||||
password: credentials!.apiKey as string
|
password: credentials!.apiKey as string
|
||||||
},
|
},
|
||||||
uri: uri || `https://n8nio.agilecrm.com/dev/${endpoint}`,
|
uri: uri || `https://${credentials!.subdomain}.agilecrm.com/dev/${endpoint}`,
|
||||||
json: true,
|
json: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user