cambio de mensaje

This commit is contained in:
Lemuel Marquez
2020-12-27 21:17:34 -06:00
parent c01cac94a9
commit 16bc5a4899
3 changed files with 11 additions and 38 deletions
+1 -33
View File
@@ -38,7 +38,7 @@ const dataResponsable = async () => {
password: encriptar.encriptar('qwertyui'),
activo: true,
}).then(async (res) => {
console.log(`Se inserto el responsable ${nombres[i]}`.magenta)
console.log(`Se inserto el responsable ${nombres[i]}`.magenta);
if (i < 5) {
for (let j = 1; j <= 5; j++) {
await Programa.create({
@@ -69,40 +69,8 @@ const dataResponsable = async () => {
}
};
const dataPrograma = async () => {
console.log('\nPaso 2) Instalando Programas falsos.'.bold.blue);
for (let i = 0; i < 5; i++) {
for (let j = 1; j <= 5; j++) {
await Programa.create({
institucion: `Institucion Falsa ${i + 1}`,
dependencia: `Dependencia Falsa ${j - i + 1}`,
programa: `Programa Falso ${j}`,
clavePrograma: `2020-${i}/${i + j + 1}-${i + j + 1}`,
idUsuario: i + 2,
});
console.log(
`Se inserto el programa ${j} del responsable ${i + 1}`.magenta
);
}
}
for (let i = 5; 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 () => {
await dataResponsable();
// await dataPrograma();
console.log(
'\nSe ha instalado exitosamente la informacion falsa.\n'.underline.bold
.green