diff --git a/server/db/data-fake.js b/server/db/data-fake.js index 808fa69..19e3f71 100644 --- a/server/db/data-fake.js +++ b/server/db/data-fake.js @@ -27,7 +27,7 @@ const dataResponsable = async () => { const dataPrograma = async () => { console.log('\nPaso 2) Instalando Programas falsos.'.bold.blue); - for (let i = 0; i < correos.length; i++) { + for (let i = 0; i < 2; i++) { for (let j = 1; j <= 5; j++) { await Programa.create({ institucion: `Institucion Falsa ${i + 1}`, @@ -41,6 +41,18 @@ const dataPrograma = async () => { ); } } + for (let i = 2; i < correos.length; i++) { + await Programa.create({ + institucion: `UNAM`, + dependencia: `FES Acatlán`, + programa: `Acatlán Contigo`, + clavePrograma: `2020-12/20-91`, + idUsuario: i + 2, + }); + console.log( + `Se inserto el programa Acatlan Contigo del responsable ${i + 1}`.magenta + ); + } }; const exec = async () => {