mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
🐛 Add back await that error can get caught
This commit is contained in:
@@ -153,7 +153,7 @@ export async function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoa
|
||||
};
|
||||
|
||||
try {
|
||||
return this.helpers.request!(options);
|
||||
return await this.helpers.request!(options);
|
||||
} catch (error) {
|
||||
if (error.statusCode === 401) {
|
||||
// Return a clear error
|
||||
|
||||
@@ -39,7 +39,7 @@ export async function twilioApiRequest(this: IHookFunctions | IExecuteFunctions,
|
||||
};
|
||||
|
||||
try {
|
||||
return this.helpers.request(options);
|
||||
return await this.helpers.request(options);
|
||||
} catch (error) {
|
||||
if (error.statusCode === 401) {
|
||||
// Return a clear error
|
||||
|
||||
Reference in New Issue
Block a user