up
This commit is contained in:
@@ -431,6 +431,7 @@ func PortalGetMiPerfil(c *fiber.Ctx) error {
|
||||
"pais": full.Pais,
|
||||
"documento": full.Documento,
|
||||
"empresa": full.Empresa,
|
||||
"sitio_web": full.SitioWeb,
|
||||
"documento_rut_file": full.DocumentoRutFile,
|
||||
"documento_rut_nombre": full.DocumentoRutNombre,
|
||||
})
|
||||
@@ -450,6 +451,7 @@ func PortalUpdateMiPerfil(c *fiber.Ctx) error {
|
||||
Pais string `json:"pais"`
|
||||
Documento string `json:"documento"`
|
||||
Empresa string `json:"empresa"`
|
||||
SitioWeb string `json:"sitio_web"`
|
||||
}
|
||||
var req Req
|
||||
if err := c.BodyParser(&req); err != nil {
|
||||
@@ -479,6 +481,7 @@ func PortalUpdateMiPerfil(c *fiber.Ctx) error {
|
||||
full.Pais = req.Pais
|
||||
full.Documento = req.Documento
|
||||
full.Empresa = req.Empresa
|
||||
full.SitioWeb = req.SitioWeb
|
||||
if err := models.UpdatePortalUser(full); err != nil {
|
||||
return c.Status(500).JSON(fiber.Map{"error": err.Error()})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user