mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fixed issue with url
This commit is contained in:
parent
3a70c3e33d
commit
5ecc955338
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue