Skip to content

Commit 7120ea7

Browse files
committed
fix
1 parent 0898ab3 commit 7120ea7

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

apps/backend/src/webhook/handler.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,7 @@ export const handleWebhook = async (
5757
const transformedData = transformResult.data!
5858

5959
// Process the webhook event
60-
const processResult = await processWebhookEvent(
61-
webhook,
62-
transformedData,
63-
webhookId
64-
)
65-
66-
if (!processResult.success) {
67-
res
68-
.status(processResult.status || 500)
69-
.json({ error: processResult.error })
70-
return
71-
}
60+
await processWebhookEvent(webhook, transformedData, webhookId)
7261

7362
res.status(200).json({ success: true })
7463
} catch (error) {

apps/backend/src/webhook/processor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export async function processWebhookEvent(
1919
})
2020

2121
if (!message) {
22-
logger.warn(`Message not found for messageId: ${transformedData.messageId}`)
2322
return {
2423
success: false,
2524
status: 404,

0 commit comments

Comments
 (0)