Skip to content

Commit

Permalink
order results of list by updated_at
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaguilar committed Oct 20, 2023
1 parent a8384e9 commit 1f0d857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/get_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func (h APIHandler) workflows(c *gin.Context) {

query := workflows(h.DB).
Limit(l).
Offset(n)
Offset(n).
Order("tfo_resources.updated_at DESC")

if matchAny != "" {
m := fmt.Sprintf("%%%s%%", matchAny)
Expand Down Expand Up @@ -165,7 +166,6 @@ func (h APIHandler) workflows(c *gin.Context) {
clusterName,
)
}

}

query.Scan(&result)
Expand Down

0 comments on commit 1f0d857

Please sign in to comment.