fix(clickup/new-folders): correct internal ID

This commit is contained in:
Ali BARIN
2024-08-15 12:06:10 +00:00
parent 3249c954d3
commit a3a4a8e431

View File

@@ -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: '',
}, },
}; };