This commit is contained in:
lemuel 2022-08-08 09:05:12 -05:00
commit 9c289e71dc
5 changed files with 14 additions and 1 deletions

View File

@ -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.',
};

View File

@ -7,7 +7,11 @@ export class UploadFileCargaMasivaUsuarioDto {
carrera?: string;
correo?: string;
numero_cuenta?: string;
rfc?: string;
tipo_usuario?: string;
}

View File

@ -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);

View File

@ -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 })

View File

@ -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) =>