File tree 5 files changed +10
-10
lines changed
src/components/TableModals/WebhooksModal/Schemas
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export const webhookBasic = {
65
65
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
66
66
logging.log("basicParser started")
67
67
68
- // Import any NPM package needed
69
- // const lodash = require(' lodash' );
68
+ // Import NPM package needed, some packages may not work in Webhooks
69
+ // const {default: lodash} = await import(" lodash" );
70
70
71
71
// Optionally return an object to be added as a new row to the table
72
72
// Example: add the webhook body as row
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export const webhookSendgrid = {
14
14
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
15
15
logging.log("sendgridParser started")
16
16
17
- // Import any NPM package needed
18
- // const lodash = require(' lodash' );
17
+ // Import NPM package needed, some packages may not work in Webhooks
18
+ // const {default: lodash} = await import(" lodash" );
19
19
20
20
const { body } = req
21
21
const eventHandler = async (sgEvent) => {
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export const webhookStripe = {
25
25
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
26
26
logging.log("stripeParser started")
27
27
28
- // Import any NPM package needed
29
- // const lodash = require(' lodash' );
28
+ // Import NPM package needed, some packages may not work in Webhooks
29
+ // const {default: lodash} = await import(" lodash" );
30
30
31
31
const event = req.body
32
32
switch (event.type) {
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export const webhookTypeform = {
14
14
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
15
15
logging.log("typeformParser started")
16
16
17
- // Import any NPM package needed
18
- // const lodash = require(' lodash' );
17
+ // Import NPM package needed, some packages may not work in Webhooks
18
+ // const {default: lodash} = await import(" lodash" );
19
19
20
20
// This reduces the form submission into a single object of key value pairs
21
21
// Example: {name: "John", age: 20}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ export const webhook = {
15
15
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
16
16
logging.log("formParser started")
17
17
18
- // Import any NPM package needed
19
- // const lodash = require(' lodash' );
18
+ // Import NPM package needed, some packages may not work in Webhooks
19
+ // const {default: lodash} = await import(" lodash" );
20
20
21
21
// Optionally return an object to be added as a new row to the table
22
22
// Example: add the webhook body as row
You can’t perform that action at this time.
0 commit comments