fix(clickup/new-folders): correct internal ID
This commit is contained in:
@@ -54,7 +54,7 @@ export default defineTrigger({
|
|||||||
const dataItem = {
|
const dataItem = {
|
||||||
raw: $.request.body,
|
raw: $.request.body,
|
||||||
meta: {
|
meta: {
|
||||||
internalId: Crypto.randomUUID(),
|
internalId: $.request.body.folder_id,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -65,13 +65,13 @@ export default defineTrigger({
|
|||||||
const sampleEventData = {
|
const sampleEventData = {
|
||||||
event: 'folderCreated',
|
event: 'folderCreated',
|
||||||
folder_id: '90180382912',
|
folder_id: '90180382912',
|
||||||
webhook_id: $.webhookUrl.split('/')[5],
|
webhook_id: Crypto.randomUUID(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const dataItem = {
|
const dataItem = {
|
||||||
raw: sampleEventData,
|
raw: sampleEventData,
|
||||||
meta: {
|
meta: {
|
||||||
internalId: sampleEventData.webhook_id,
|
internalId: '',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user