From 5933e6a7828026ba035a40bc2a120f8e23146492 Mon Sep 17 00:00:00 2001 From: Lemuel Marquez Date: Mon, 18 Jan 2021 15:19:17 -0600 Subject: [PATCH] para de cometer errores lpm --- server/db/antiguo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/db/antiguo.js b/server/db/antiguo.js index c2e473a..ccc248e 100644 --- a/server/db/antiguo.js +++ b/server/db/antiguo.js @@ -328,7 +328,8 @@ const carpetasRepetidas = async () => { for (let i = 0; i < carpetas.length; i++) { let aux = [carpetas[i]]; for (let j = i + 1; j < carpetas.length; j++) { - if (carpetas[i].name === carpetas[j].name) carpetas.push(carpetas[j]); + if (carpetas[i].name === carpetas[j].name) aux.push(carpetas[j]); + break; } if (aux.length > 1) repetidas.push(aux); }