Skip to content

Commit 25ee86d

Browse files
committed
fix(be): sorting output by timestump and id
1 parent 461355d commit 25ee86d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

db/sql/task.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ func (d *SqlDb) GetTaskOutputs(projectID int, taskID int, params db.RetrieveQuer
224224

225225
q := squirrel.Select("task_id", "time", "output").
226226
From("task__output").
227-
Where("task_id=?", taskID)
227+
Where("task_id=?", taskID).
228+
OrderBy("time, id")
228229

229230
if params.Count > 0 {
230231
q = q.Limit(uint64(params.Count)).Offset(uint64(params.Offset))

0 commit comments

Comments
 (0)