Skip to content

Commit

Permalink
Delete logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joeauyeung committed Dec 27, 2024
1 parent 77859ce commit 9fc0169
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ export const ZTriggerFormSubmittedNoEventWebhookPayloadSchema = z.object({
});

export async function triggerFormSubmittedNoEventWebhook(payload: string): Promise<void> {
console.log("🚀 ~ triggerFormSubmittedNoEventWebhook ~ payload:", payload);
const { webhook, responseId, form, redirect, responses } =
ZTriggerFormSubmittedNoEventWebhookPayloadSchema.parse(JSON.parse(payload));
console.log("🚀 ~ triggerFormSubmittedNoEventWebhook ~ responseId:", responseId);

const bookingFromResponse = await prisma.booking.findFirst({
where: {
routedFromRoutingFormReponse: {
Expand Down Expand Up @@ -84,8 +81,6 @@ export async function triggerFormSubmittedNoEventWebhook(payload: string): Promi
return typeof value === "string" && value.includes("@");
}
)?.value;
console.log("🚀 ~ triggerFormSubmittedNoEventWebhook ~ emailValue:", emailValue);

// Check for duplicate email in recent responses
const hasDuplicate =
emailValue &&
Expand Down

0 comments on commit 9fc0169

Please sign in to comment.