listo para pruebas

This commit is contained in:
Lemuel Marquez
2020-12-07 18:09:28 -06:00
parent 61f9343fc4
commit 5d1c0a642e
+13 -1
View File
@@ -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 () => {