listo carga masiva equipos
This commit is contained in:
+4
-4
@@ -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',
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ import { Usuario } from './usuario/entity/usuario.entity';
|
||||
username: configService.get<string>('DB_USER'),
|
||||
password: configService.get<string>('DB_PASSWORD'),
|
||||
port: parseInt(configService.get<string>('DB_PORT')),
|
||||
synchronize: false,
|
||||
synchronize: configService.get<string>('STATE') !== 'produccion',
|
||||
entities: [
|
||||
Carrera,
|
||||
CarreraPrograma,
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user