Skip to content

Commit bba6b9b

Browse files
authored
feat: remove order by created_at for selecting job (#3502)
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent 1e0dcaf commit bba6b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/service/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (s *service) GetJobs(ctx context.Context, q types.GetJobsQuery) ([]models.J
305305
Type: q.Type,
306306
State: q.State,
307307
UserID: q.UserID,
308-
}).Order("created_at DESC").Find(&jobs).Limit(-1).Offset(-1).Count(&count).Error; err != nil {
308+
}).Find(&jobs).Limit(-1).Offset(-1).Count(&count).Error; err != nil {
309309
return nil, 0, err
310310
}
311311

0 commit comments

Comments
 (0)