mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fixed tabs issue
This commit is contained in:
parent
e9613944db
commit
11826d6a4e
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue