Merge pull request #518 from R0m1k3/1.1

Add ability to upload files to external webhooks
This commit is contained in:
LogiFlow authored and GitHub committed 2025-11-04 16:04:57 +01:00
commit fdb9ee0243
3 files changed
+1 -1

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

+1 -1
View File
@@ -128,6 +128,7 @@ import { invoiceVerificationService } from "./invoiceVerification";
import { backupService } from "./backupService";
import { weatherService } from "./weatherService.js";
import fetch from "node-fetch";
import FormData from "form-data";
export async function registerRoutes(app: Express): Promise<Server> {
// Detect environment
@@ -820,7 +821,6 @@ export async function registerRoutes(app: Express): Promise<Server> {
});
// Préparer le FormData pour l'envoi au webhook externe
const FormData = (await import('form-data')).default;
const formData = new FormData();
// Ajouter tous les champs du formData