Skip to content

Commit

Permalink
🐛 Fix error: 'ambiguous column name: id' (#719)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel authored Jul 11, 2024
1 parent 5c139ac commit 36360b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (h AnalysisHandler) List(ctx *gin.Context) {
_ = ctx.Error(err)
return
}
filter = filter.Renamed("id", "analysis\\.id")
// sort.
sort := Sort{}
err = sort.With(ctx, &model.Analysis{})
if err != nil {
Expand Down

0 comments on commit 36360b3

Please sign in to comment.