Merge branch 'pruebas' of https://repositorio.acatlan.unam.mx/CIDWA/pcpuma_unam_api into pmodulos
This commit is contained in:
commit
9c289e71dc
@ -67,6 +67,9 @@ export class PrestamoService {
|
||||
.then((_) => this.repository.save(prestamo))
|
||||
.then((_) => {
|
||||
this.appGateway.actualizarUsuario(prestamo.usuario.id_usuario);
|
||||
this.appGateway.actualizarOperador(
|
||||
operadorRegreso.institucion.id_institucion,
|
||||
);
|
||||
return {
|
||||
message: 'Se canceló correctamente este préstamo.',
|
||||
};
|
||||
|
@ -7,7 +7,11 @@ export class UploadFileCargaMasivaUsuarioDto {
|
||||
|
||||
carrera?: string;
|
||||
|
||||
correo?: string;
|
||||
|
||||
numero_cuenta?: string;
|
||||
|
||||
rfc?: string;
|
||||
|
||||
tipo_usuario?: string;
|
||||
}
|
||||
|
@ -376,6 +376,8 @@ export class UploadFileService {
|
||||
].apellido_m.trim()} ${usuarios[i].nombres.trim()}`,
|
||||
tipoUsuario,
|
||||
institucionCarrera,
|
||||
usuarios[i].correo ? usuarios[i].correo : '',
|
||||
usuarios[i].rfc ? usuarios[i].rfc : '',
|
||||
)
|
||||
.then(({ message, institucionUsuario }) => {
|
||||
usuariosNuevos.push(institucionUsuario);
|
||||
|
@ -24,7 +24,7 @@ export class Usuario {
|
||||
@Column({ type: String, nullable: true, length: 60, default: null })
|
||||
password: string;
|
||||
|
||||
@Column({ type: String, nullable: true, length: 12 })
|
||||
@Column({ type: String, nullable: true, length: 15 })
|
||||
rfc: string;
|
||||
|
||||
@Column({ type: String, nullable: true, length: 10, default: null })
|
||||
|
@ -35,6 +35,8 @@ export class UsuarioService {
|
||||
nombre: string,
|
||||
tipoUsuario: TipoUsuario,
|
||||
institucionCarrera: InstitucionCarrera,
|
||||
correo?: string,
|
||||
rfc?: string,
|
||||
) {
|
||||
return this.repository
|
||||
.save(
|
||||
@ -42,6 +44,8 @@ export class UsuarioService {
|
||||
nombre,
|
||||
tipoUsuario,
|
||||
usuario,
|
||||
correo: correo ? correo : '',
|
||||
rfc: rfc ? rfc : '',
|
||||
}),
|
||||
)
|
||||
.then((usuario) =>
|
||||
|
Loading…
Reference in New Issue
Block a user