diff --git a/src/app.gateway.ts b/src/app.gateway.ts index 5388e21..8f73505 100644 --- a/src/app.gateway.ts +++ b/src/app.gateway.ts @@ -10,10 +10,10 @@ import { Socket, Server } from 'socket.io'; @WebSocketGateway({ cors: { origin: [ - // 'http://localhost:3176', - // 'http://localhost:3186', - 'http://132.248.80.196:3155', - 'http://132.248.80.196:3185', + 'http://localhost:3176', + 'http://localhost:3186', + // 'http://132.248.80.196:3155', + // 'http://132.248.80.196:3185', // 'https://pmodulospcpuma.unam.mx', // 'http://pmodulospcpuma.unam.mx:3015', // 'https://modulospcpuma.unam.mx', diff --git a/src/app.module.ts b/src/app.module.ts index 079ee81..a441863 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -93,7 +93,7 @@ import { Usuario } from './usuario/entity/usuario.entity'; username: configService.get('DB_USER'), password: configService.get('DB_PASSWORD'), port: parseInt(configService.get('DB_PORT')), - synchronize: false, + synchronize: configService.get('STATE') !== 'produccion', entities: [ Carrera, CarreraPrograma, diff --git a/src/institucion-dia/entity/institucion-dia.entity.ts b/src/institucion-dia/entity/institucion-dia.entity.ts index 88e22d9..fa67177 100644 --- a/src/institucion-dia/entity/institucion-dia.entity.ts +++ b/src/institucion-dia/entity/institucion-dia.entity.ts @@ -18,16 +18,16 @@ export class InstitucionDia { @Column({ type: Boolean, nullable: false, default: false }) activo: boolean; - @Column({ type: String, nullable: false, default: '18:45', length: 5 }) + @Column({ type: String, nullable: false, default: '18:35', length: 5 }) hora_extra: string; - @Column({ type: String, nullable: false, default: '17:45', length: 5 }) + @Column({ type: String, nullable: false, default: '17:35', length: 5 }) hora_fin: string; @Column({ type: String, nullable: false, default: '08:50', length: 5 }) hora_inicio: string; - @Column({ type: String, nullable: false, default: '20:00', length: 5 }) + @Column({ type: String, nullable: false, default: '19:45', length: 5 }) hora_tope: string; @ManyToOne(() => Dia, (dia) => dia.institucionesDias, { eager: true }) diff --git a/src/upload-file/upload-file.service.ts b/src/upload-file/upload-file.service.ts index c1d8b0f..dd1dfed 100644 --- a/src/upload-file/upload-file.service.ts +++ b/src/upload-file/upload-file.service.ts @@ -269,7 +269,7 @@ export class UploadFileService { errores, equiposNuevos, ); - if ((i + 1) % 100 === 0) { + if ((i + 1) % 100 === 0 || i + 1 === equipos.length) { this.appGateway.equiposNuevos(institucion.id_institucion, { errores, mensajes,