mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🔀 Merge pull request #202 from RicardoE105/fix/rocketchat-node
fixed issue with url
This commit is contained in:
@@ -20,14 +20,12 @@ export async function rocketchatApiRequest(this: IHookFunctions | IExecuteFuncti
|
||||
headers: headerWithAuthentication,
|
||||
method,
|
||||
body,
|
||||
uri: `${credentials.domain}${resource}.${operation}`,
|
||||
uri: `${credentials.domain}/api/v1${resource}.${operation}`,
|
||||
json: true
|
||||
};
|
||||
|
||||
if (Object.keys(options.body).length === 0) {
|
||||
delete options.body;
|
||||
}
|
||||
|
||||
try {
|
||||
return await this.helpers.request!(options);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user