V1_Fonctionnel_GTAV1_GTA

This commit is contained in:
2025-11-28 16:55:45 +01:00
parent f22979a44a
commit 6d244f5323
55 changed files with 7567 additions and 5819 deletions

View File

@@ -1,4 +1,4 @@
// webhook-utils.js (VERSION ES MODULES)
// webhook-utils.js (VERSION ES MODULES - CORRIGÉE)
// Pour projets avec "type": "module" dans package.json
import axios from 'axios';
@@ -65,6 +65,7 @@ class WebhookManager {
for (let attempt = 1; attempt <= retries; attempt++) {
try {
console.log(`📤 Envoi webhook: ${eventType} vers ${targetUrl} (tentative ${attempt}/${retries})`);
console.log(` Données:`, JSON.stringify(data, null, 2));
const response = await axios.post(
`${targetUrl}/api/webhook/receive`,