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 { OptionsWithUri } from 'request';
import { import {
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
@ -8,7 +7,6 @@ import {
} from 'n8n-core'; } 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 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'); const credentials = this.getCredentials('rocketchatApi');
if (credentials === undefined) { if (credentials === undefined) {

View file

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