Minor improvement to NextCloud Node

This commit is contained in:
Jan Oberhauser
2021-01-23 12:57:30 +01:00
parent 2ca9c6de7d
commit 1cfdae389e
2 changed files with 9 additions and 5 deletions

View File

@@ -19,8 +19,8 @@ import {
export async function nextCloudApiRequest(this: IHookFunctions | IExecuteFunctions, method: string, endpoint: string, body: object | string | Buffer, headers?: object, encoding?: null | undefined, query?: object): Promise<any> { // tslint:disable-line:no-any
const resource = this.getNodeParameter('resource', 0);
const operation = this.getNodeParameter('operation', 0);
const options : OptionsWithUri = {
const options: OptionsWithUri = {
headers,
method,
body,