mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Minor improvements to ClickUp-Node
This commit is contained in:
parent
15c0eae56d
commit
edd2d39fb1
|
@ -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 */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in a new issue