cambios rapidos
This commit is contained in:
parent
254504f7a9
commit
7862c08c02
@ -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,
|
||||
|
@ -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.',
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user