listo para pruebas
This commit is contained in:
+13
-1
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user