summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-06-05 22:42:59 +0200
committerRory& <root@rory.gay>2026-06-05 22:42:59 +0200
commit79e5899dc1d53a430276481b3743b61187040aea (patch)
treef4276ca54218b305158df88fc6aa0be7623a617b
parentUnit tests for webhooks (diff)
downloadserver-ts-79e5899dc1d53a430276481b3743b61187040aea.tar.xz
Log silent attachment failures for webhooks
-rw-r--r--src/api/util/handlers/Webhook.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/util/handlers/Webhook.ts b/src/api/util/handlers/Webhook.ts

index 73e609d8..a3ad944a 100644 --- a/src/api/util/handlers/Webhook.ts +++ b/src/api/util/handlers/Webhook.ts
@@ -92,6 +92,7 @@ export const executeWebhook = async (req: Request, res: Response) => { attachments.push(Attachment.create(file)); } catch (error) { if (wait) res.status(400).json({ message: error?.toString() }); + console.error("[webhookExecute] Failed to handle attachment:", error); return; } }