Skip to content

Commit

Permalink
Merge pull request #62 from udistrital/develop
Browse files Browse the repository at this point in the history
fix: ajuste en controlador para consulta de novedades orden descendente
  • Loading branch information
a52290451 committed Jun 23, 2022
2 parents fb7a0b8 + ea1f59e commit 1c3fe86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/novedades.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (c *NovedadesController) GetOne() {
idStr := c.Ctx.Input.Param(":id")
vigencia := c.Ctx.Input.Param(":vigencia")

error := request.GetJson(beego.AppConfig.String("NovedadesCrudService")+"/novedades_poscontractuales/?query=contrato_id:"+idStr+",vigencia:"+vigencia+"&limit=0&sortby=FechaCreacion&order=desc", &novedades)
error := request.GetJson(beego.AppConfig.String("NovedadesCrudService")+"/novedades_poscontractuales/?query=contrato_id:"+idStr+",vigencia:"+vigencia+"&limit=0&sortby=FechaCreacion&order=asc", &novedades)
fmt.Println(beego.AppConfig.String("NovedadesCrudService") + "/novedades_poscontractuales/?query=contrato_id:" + idStr + ",vigencia:" + vigencia + "&limit=0&sortby=FechaCreacion&order=desc")
fmt.Println("Novedades: ", novedades)
// fmt.Println("posicion 1 del vector ", novedades[0], vacio)
Expand Down

0 comments on commit 1c3fe86

Please sign in to comment.