Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Fix Postmark webhook only shows last message without the previous one

fzaninotto22b3ed00621b
diff --git a/supabase/functions/postmark/index.ts b/supabase/functions/postmark/index.ts
index c18e603e..22fb864b 100644
--- a/supabase/functions/postmark/index.ts
+++ b/supabase/functions/postmark/index.ts
@@ -32,9 +32,9 @@ Deno.serve(async req => {
response = checkBody(json);
if (response) return response;
- const { ToFull, FromFull, Subject, TextBody, StrippedTextReply } = json;
+ const { ToFull, FromFull, Subject, TextBody } = json;
- const noteContent = getNoteContent(Subject, StrippedTextReply || TextBody);
+ const noteContent = getNoteContent(Subject, TextBody);
const { Email: salesEmail } = FromFull;
if (!salesEmail) {