Skip to content

Commit ad218be

Browse files
authored
Merge pull request #1364 from rowyio/develop
Develop
2 parents eef9411 + 776e821 commit ad218be

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/components/TableModals/WebhooksModal/Schemas/basic.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export const webhookBasic = {
6565
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
6666
logging.log("basicParser started")
6767
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");
7070
7171
// Optionally return an object to be added as a new row to the table
7272
// Example: add the webhook body as row

src/components/TableModals/WebhooksModal/Schemas/sendgrid.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const webhookSendgrid = {
1414
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
1515
logging.log("sendgridParser started")
1616
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");
1919
2020
const { body } = req
2121
const eventHandler = async (sgEvent) => {

src/components/TableModals/WebhooksModal/Schemas/stripe.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const webhookStripe = {
2525
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
2626
logging.log("stripeParser started")
2727
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");
3030
3131
const event = req.body
3232
switch (event.type) {

src/components/TableModals/WebhooksModal/Schemas/typeform.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const webhookTypeform = {
1414
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
1515
logging.log("typeformParser started")
1616
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");
1919
2020
// This reduces the form submission into a single object of key value pairs
2121
// Example: {name: "John", age: 20}

src/components/TableModals/WebhooksModal/Schemas/webform.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const webhook = {
1515
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
1616
logging.log("formParser started")
1717
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");
2020
2121
// Optionally return an object to be added as a new row to the table
2222
// Example: add the webhook body as row

0 commit comments

Comments
 (0)