mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Minor improvements to ClickUp-Node
This commit is contained in:
@@ -14,7 +14,7 @@ export async function clickupApiRequest(this: IHookFunctions | IExecuteFunctions
|
||||
throw new Error('No credentials got returned!');
|
||||
}
|
||||
|
||||
let options: OptionsWithUri = {
|
||||
const options: OptionsWithUri = {
|
||||
headers: {
|
||||
Authorization: credentials.accessToken,
|
||||
'Content-Type': 'application/json',
|
||||
@@ -30,8 +30,8 @@ export async function clickupApiRequest(this: IHookFunctions | IExecuteFunctions
|
||||
} catch (error) {
|
||||
let errorMessage = error;
|
||||
if (error.err) {
|
||||
errorMessage = error.err
|
||||
errorMessage = error.err;
|
||||
}
|
||||
throw new Error('Click Up Error: ' + errorMessage);
|
||||
throw new Error('ClickUp Error: ' + errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user