Se actualizan los campos
This commit is contained in:
@@ -174,6 +174,15 @@ export class ProgramaService {
|
||||
mensaje += `Error creando programa: ${err.message}\n`;
|
||||
}
|
||||
} else {
|
||||
await this.programaRepo.update(
|
||||
{ idPrograma: existente.idPrograma },
|
||||
{ institucion: prog.institucion, programa: prog.programa }
|
||||
)
|
||||
|
||||
await this.usuarioRepo.update(
|
||||
{ idUsuario: responsable.idUsuario },
|
||||
{ nombre: prog.nombre }
|
||||
)
|
||||
mensaje += `Programa ACATLÁN ya pertenece a ${responsable.usuario}\n`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user