small fix

This commit is contained in:
ricardo 2020-06-01 20:51:26 -04:00
parent 098b05e370
commit d17d18ceb6

View file

@ -31,7 +31,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF
delete options.body;
}
//@ts-ignore
return await this.helpers.requestOAuth.call(this, 'googleCalendarOAuth2Api', options);
return await this.helpers.requestOAuth2.call(this, 'googleCalendarOAuth2Api', options);
} catch (error) {
if (error.response && error.response.body && error.response.body.message) {
// Try to return the error prettier