fixed tabs issue

This commit is contained in:
Ricardo Espinoza 2019-11-11 00:00:24 -05:00
parent e9613944db
commit 11826d6a4e
2 changed files with 347 additions and 351 deletions

View file

@ -1,5 +1,4 @@
import { OptionsWithUri } from 'request';
import {
IExecuteFunctions,
IHookFunctions,
@ -8,7 +7,6 @@ import {
} from 'n8n-core';
export async function rocketchatApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, resource: string, method: string, operation: string, body: any = {}, headers?: object): Promise<any> { // tslint:disable-line:no-any
const credentials = this.getCredentials('rocketchatApi');
if (credentials === undefined) {

View file

@ -7,7 +7,7 @@ import {
INodeExecutionData,
INodeType
} from 'n8n-workflow';
import {
import {
rocketchatApiRequest,
validateJSON
} from './GenericFunctions';
@ -47,7 +47,6 @@ interface IPostMessageBody {
}
export class Rocketchat implements INodeType {
description: INodeTypeDescription = {
displayName: 'Rocketchat',
name: 'Rocketchat',
@ -417,7 +416,6 @@ export class Rocketchat implements INodeType {
};
async executeSingle(this: IExecuteSingleFunctions): Promise<INodeExecutionData> {
const resource = this.getNodeParameter('resource') as string;
const opeation = this.getNodeParameter('operation') as string;
let response;