Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "confetti", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A Node wrapper for the Confetti API.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,4 +15,7 @@ const url = require('url') | ||
attributes(webhook) { | ||
webhook.event = { | ||
id: webhook.eventId | ||
if (webhook.eventId) { | ||
webhook.event = { | ||
id: webhook.eventId | ||
} | ||
delete webhook.eventId | ||
} | ||
@@ -22,3 +25,2 @@ webhook.workspace = { | ||
} | ||
delete webhook.eventId | ||
delete webhook.workspaceId | ||
@@ -25,0 +27,0 @@ return super.attributes(webhook) |
@@ -86,3 +86,4 @@ module.exports = function({ samples }) { | ||
label: 'Attending', | ||
description: 'Triggers when someone attendes a event.' | ||
description: 'Triggers when someone attendes a event.', | ||
important: true | ||
}, | ||
@@ -92,3 +93,4 @@ { | ||
label: 'Declined', | ||
description: 'Triggers when someone declines.' | ||
description: 'Triggers when someone declines.', | ||
important: true | ||
}, | ||
@@ -95,0 +97,0 @@ { |
45400
1531