mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Merge pull request #518 from R0m1k3/1.1
Add ability to upload files to external webhooks
This commit is contained in:
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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user