mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(ERPNext Node): Fix issue with credential test and add frappe cloud url (#6283)
This commit is contained in:
@@ -13,7 +13,7 @@ import { NodeApiError } from 'n8n-workflow';
|
||||
* Return the base API URL based on the user's environment.
|
||||
*/
|
||||
const getBaseUrl = ({ environment, domain, subdomain }: ERPNextApiCredentials) =>
|
||||
environment === 'cloudHosted' ? `https://${subdomain}.erpnext.com` : domain;
|
||||
environment === 'cloudHosted' ? `https://${subdomain}.${domain}` : domain;
|
||||
|
||||
export async function erpNextApiRequest(
|
||||
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
|
||||
|
||||
Reference in New Issue
Block a user