update modulo
This commit is contained in:
parent
ff0c37d0ec
commit
864c119d4f
@ -58,9 +58,10 @@ export class ModuloService {
|
||||
'Ya existe un módulo con este nombre, intente con otro nombre.',
|
||||
);
|
||||
Object.assign(modulo, attrs);
|
||||
return this.moduloRepository.save(modulo).then(() => ({
|
||||
return this.moduloRepository.save(modulo);
|
||||
})
|
||||
.then(() => ({
|
||||
message: 'Se actualizo correctamente la información del módulo.',
|
||||
}));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user