diff --git a/js/admin.js b/js/admin.js index ec91901..c99f0ea 100644 --- a/js/admin.js +++ b/js/admin.js @@ -396,8 +396,8 @@ async function handleCritiqueUpload(input) { showImportModal(allData.length, 'critique'); let processed = 0; - for (let i = 0; i < allData.length; i += 10) { - const batch = allData.slice(i, i + 10); + for (let i = 0; i < allData.length; i += 3) { // đŸ”¥ RĂ©duit de 10 Ă  3 pour Ă©viter le timeout serveur + const batch = allData.slice(i, i + 3); try { const response = await fetch(`${API_URL}?action=import_batch`, { method: 'POST', @@ -466,8 +466,8 @@ async function handleVideothequeUpload(input) { showImportModal(allData.length, 'videotheque'); let processed = 0; - for (let i = 0; i < allData.length; i += 10) { - const batch = allData.slice(i, i + 10); + for (let i = 0; i < allData.length; i += 3) { // đŸ”¥ RĂ©duit de 10 Ă  3 pour Ă©viter le timeout serveur + const batch = allData.slice(i, i + 3); try { const response = await fetch(`${API_URL}?action=import_batch`, { method: 'POST',