🐛 Fix issue sending the parameter project incorrectly (Invoiceninja) (#1619)

When creating a task, the project parameter was being send 'project' but it must be 'project_id'
This commit is contained in:
Ricardo Espinoza
2021-04-02 08:31:44 -04:00
committed by GitHub
parent ee0d6f8d9a
commit 7ce2de0e7c
5 changed files with 44 additions and 24 deletions

View File

@@ -1,4 +1,6 @@
import { OptionsWithUri } from 'request';
import {
OptionsWithUri,
} from 'request';
import {
IExecuteFunctions,
@@ -11,7 +13,9 @@ import {
IDataObject,
} from 'n8n-workflow';
import { get } from 'lodash';
import {
get,
} from 'lodash';
export async function invoiceNinjaApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, endpoint: string, body: any = {}, query?: IDataObject, uri?: string): Promise<any> { // tslint:disable-line:no-any
const credentials = this.getCredentials('invoiceNinjaApi');