Skip to content

Commit

Permalink
feat: remove order by created_at for selecting job (#3502)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi authored Sep 11, 2024
1 parent 1e0dcaf commit bba6b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/service/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (s *service) GetJobs(ctx context.Context, q types.GetJobsQuery) ([]models.J
Type: q.Type,
State: q.State,
UserID: q.UserID,
}).Order("created_at DESC").Find(&jobs).Limit(-1).Offset(-1).Count(&count).Error; err != nil {
}).Find(&jobs).Limit(-1).Offset(-1).Count(&count).Error; err != nil {
return nil, 0, err
}

Expand Down

0 comments on commit bba6b9b

Please sign in to comment.