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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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[] = [];