From 5ecc9553386351d984b030d90b9663bee08be452 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 8 Jan 2020 11:06:28 -0500 Subject: [PATCH] fixed issue with url --- packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts index b9d0763f4b..ef3fc8be7b 100644 --- a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts @@ -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) {