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 {
|
||||
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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue