mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(beeminder Node): fix request id not being sent when creating a new datapoint
This commit is contained in:
committed by
GitHub
parent
071ab40c9f
commit
73c5210294
@@ -15,10 +15,6 @@ export async function beeminderApiRequest(
|
||||
query: IDataObject = {},
|
||||
// tslint:disable-next-line:no-any
|
||||
): Promise<any> {
|
||||
const credentials = (await this.getCredentials('beeminderApi')) as IDataObject;
|
||||
|
||||
Object.assign(body, { auth_token: credentials.authToken });
|
||||
|
||||
const options: OptionsWithUri = {
|
||||
method,
|
||||
body,
|
||||
@@ -36,7 +32,7 @@ export async function beeminderApiRequest(
|
||||
}
|
||||
|
||||
try {
|
||||
return await this.helpers.request!(options);
|
||||
return await this.helpers.requestWithAuthentication.call(this, 'beeminderApi', options);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user