Fix function name on Beeminder Node (#1337)

This commit is contained in:
Mutasem Aldmour
2021-01-13 20:34:29 +02:00
committed by GitHub
parent 29c9c6d933
commit 4f75788818
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import {
import {
beeminderApiRequest,
beeminderpiRequestAllItems,
beeminderApiRequestAllItems,
} from './GenericFunctions';
export async function createDatapoint(this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, data: IDataObject) {
@@ -39,7 +39,7 @@ export async function getAllDatapoints(this: IExecuteFunctions | IHookFunctions
return beeminderApiRequest.call(this, 'GET', endpoint, {}, data);
}
return await beeminderpiRequestAllItems.call(this, 'GET', endpoint, {}, data);
return await beeminderApiRequestAllItems.call(this, 'GET', endpoint, {}, data);
}
export async function updateDatapoint(this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, data: IDataObject) {

View File

@@ -47,7 +47,7 @@ export async function beeminderApiRequest(this: IExecuteFunctions | IWebhookFunc
}
}
export async function beeminderpiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions, method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
export async function beeminderApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions, method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
const returnData: IDataObject[] = [];