small fix

This commit is contained in:
ricardo 2020-07-13 16:06:42 -04:00
parent 2946dce8ee
commit 36c1663271
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,8 @@ import {
} from 'n8n-core'; } from 'n8n-core';
import { import {
IDataObject, IOAuth2Options, IDataObject,
IOAuth2Options,
} from 'n8n-workflow'; } from 'n8n-workflow';
export async function boxApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions, method: string, resource: string, body: any = {}, qs: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any export async function boxApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions, method: string, resource: string, body: any = {}, qs: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any

View file

@ -9,8 +9,10 @@ import {
} from 'n8n-core'; } from 'n8n-core';
import { import {
IDataObject, IOAuth2Options IDataObject,
IOAuth2Options,
} from 'n8n-workflow'; } from 'n8n-workflow';
import * as _ from 'lodash'; import * as _ from 'lodash';
export async function slackApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, resource: string, body: object = {}, query: object = {}, headers: {} | undefined = undefined, option: {} = {}): Promise<any> { // tslint:disable-line:no-any export async function slackApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, resource: string, body: object = {}, query: object = {}, headers: {} | undefined = undefined, option: {} = {}): Promise<any> { // tslint:disable-line:no-any