cambios rapidos

This commit is contained in:
xXpuma99Xx 2022-07-26 11:48:43 -05:00
parent 254504f7a9
commit 7862c08c02
4 changed files with 19 additions and 17 deletions

View File

@ -17,7 +17,7 @@ import { UsuarioModule } from '../usuario/usuario.module';
inject: [ConfigService],
useFactory: (configService: ConfigService) => ({
secret: configService.get<string>('AUTH_SECRETKEY'),
signOptions: { expiresIn: '2h' },
signOptions: { expiresIn: '10h' },
}),
}),
ModuloModule,

View File

@ -47,6 +47,14 @@ export class CarreraProgramaService {
}));
}
delete(id_carrera_programa: number) {
return this.findById(id_carrera_programa)
.then((carreraPrograma) => this.repository.delete(carreraPrograma))
.then((_) => ({
message: 'Se eliminó correctamente la asignación del programa.',
}));
}
findById(id_carrera_programa: number) {
return this.repository
.findOne({ id_carrera_programa })
@ -76,12 +84,4 @@ export class CarreraProgramaService {
}),
);
}
delete(id_carrera_programa: number) {
return this.findById(id_carrera_programa)
.then((carreraPrograma) => this.repository.delete(carreraPrograma))
.then((_) => ({
message: 'Se eliminó correctamente la asignación del programa.',
}));
}
}

View File

@ -47,9 +47,11 @@ export class HoraExcepcionService {
}
delete(id_hora_excepcion: number) {
return this.findById(id_hora_excepcion).then((horaExcepcion) =>
this.repository.delete(horaExcepcion),
);
return this.findById(id_hora_excepcion)
.then((horaExcepcion) => this.repository.delete(horaExcepcion))
.then((_) => ({
message: 'Se eliminó correctamente esta hora excepción.',
}));
}
findAllByIdInstitucionDia(id_institucion_dia: number) {

View File

@ -1,5 +1,5 @@
numero_cuenta,nombres,apellido_p,apellido_m,carrera,tipo_usuario
316313528,LEMUEL HELON,MARQUEZ,ROSAS,MATEMATICAS APLICADAS Y COMPUTACION,Alumno
316019251,MARCO ANTONIO,ROMERO,VAZQUEZ,ACTUARIA,Alumno
316304326,JEREMY,CARRERA,SERRANO,ARQUITECTURA,Alumno
419085500,ANDRES HERNAN,SAAVEDRA,TREJO,,Profesor
numero_cuenta,nombres,apellido_p,apellido_m,carrera,tipo_usuario,rfc
316313528,LEMUEL HELON,MARQUEZ,ROSAS,MATEMATICAS APLICADAS Y COMPUTACION,Alumno,
316019251,MARCO ANTONIO,ROMERO,VAZQUEZ,ACTUARIA,Alumno,
316304326,JEREMY,CARRERA,SERRANO,ARQUITECTURA,Alumno,
419085500,ANDRES HERNAN,SAAVEDRA,TREJO,,Profesor,KDIE993388EOX

1 numero_cuenta nombres apellido_p apellido_m carrera tipo_usuario rfc
2 316313528 LEMUEL HELON MARQUEZ ROSAS MATEMATICAS APLICADAS Y COMPUTACION Alumno
3 316019251 MARCO ANTONIO ROMERO VAZQUEZ ACTUARIA Alumno
4 316304326 JEREMY CARRERA SERRANO ARQUITECTURA Alumno
5 419085500 ANDRES HERNAN SAAVEDRA TREJO Profesor KDIE993388EOX