mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ small fix
This commit is contained in:
@@ -31,7 +31,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF
|
|||||||
delete options.body;
|
delete options.body;
|
||||||
}
|
}
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
return await this.helpers.requestOAuth.call(this, 'googleCalendarOAuth2Api', options);
|
return await this.helpers.requestOAuth2.call(this, 'googleCalendarOAuth2Api', options);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response && error.response.body && error.response.body.message) {
|
if (error.response && error.response.body && error.response.body.message) {
|
||||||
// Try to return the error prettier
|
// Try to return the error prettier
|
||||||
|
|||||||
Reference in New Issue
Block a user