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:
@@ -1140,7 +1140,12 @@ export class ClickUp implements INodeType {
|
||||
if (operation === 'stop') {
|
||||
const teamId = this.getNodeParameter('team', i) as string;
|
||||
responseData = await clickupApiRequest.call(this, 'POST', `/team/${teamId}/time_entries/stop`);
|
||||
|
||||
if (responseData.data) {
|
||||
responseData = responseData.data;
|
||||
} else {
|
||||
throw new Error('There seems to be nothing to stop.');
|
||||
}
|
||||
}
|
||||
if (operation === 'delete') {
|
||||
const teamId = this.getNodeParameter('team', i) as string;
|
||||
|
||||
@@ -153,6 +153,7 @@ export const timeEntryFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* timeEntry:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -213,6 +214,7 @@ export const timeEntryFields = [
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* timeEntry:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -467,6 +469,7 @@ export const timeEntryFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* timeEntry:start */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -539,6 +542,7 @@ export const timeEntryFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* timeEntry:stop */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -562,6 +566,7 @@ export const timeEntryFields = [
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* timeEntry:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -602,6 +607,7 @@ export const timeEntryFields = [
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* timeEntry:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user