Merge pull request #1364 from rowyio/develop

Develop
This commit is contained in:
Shams
2023-07-31 02:49:04 -07:00
committed by GitHub
5 changed files with 10 additions and 10 deletions

View File

@@ -65,8 +65,8 @@ export const webhookBasic = {
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
logging.log("basicParser started")
// Import any NPM package needed
// const lodash = require('lodash');
// Import NPM package needed, some packages may not work in Webhooks
// const {default: lodash} = await import("lodash");
// Optionally return an object to be added as a new row to the table
// Example: add the webhook body as row

View File

@@ -14,8 +14,8 @@ export const webhookSendgrid = {
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
logging.log("sendgridParser started")
// Import any NPM package needed
// const lodash = require('lodash');
// Import NPM package needed, some packages may not work in Webhooks
// const {default: lodash} = await import("lodash");
const { body } = req
const eventHandler = async (sgEvent) => {

View File

@@ -25,8 +25,8 @@ export const webhookStripe = {
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
logging.log("stripeParser started")
// Import any NPM package needed
// const lodash = require('lodash');
// Import NPM package needed, some packages may not work in Webhooks
// const {default: lodash} = await import("lodash");
const event = req.body
switch (event.type) {

View File

@@ -14,8 +14,8 @@ export const webhookTypeform = {
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
logging.log("typeformParser started")
// Import any NPM package needed
// const lodash = require('lodash');
// Import NPM package needed, some packages may not work in Webhooks
// const {default: lodash} = await import("lodash");
// This reduces the form submission into a single object of key value pairs
// Example: {name: "John", age: 20}

View File

@@ -15,8 +15,8 @@ export const webhook = {
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
logging.log("formParser started")
// Import any NPM package needed
// const lodash = require('lodash');
// Import NPM package needed, some packages may not work in Webhooks
// const {default: lodash} = await import("lodash");
// Optionally return an object to be added as a new row to the table
// Example: add the webhook body as row