Skip to content

Commit 7ac5b5e

Browse files
committed
do not sortdesc by default
1 parent 468e579 commit 7ac5b5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dbos/conductor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,9 @@ func (c *Conductor) handleListWorkflowsRequest(data []byte, requestID string) er
562562
var opts []ListWorkflowsOption
563563
opts = append(opts, WithLoadInput(req.Body.LoadInput))
564564
opts = append(opts, WithLoadOutput(req.Body.LoadOutput))
565-
opts = append(opts, WithSortDesc())
565+
if req.Body.SortDesc {
566+
opts = append(opts, WithSortDesc())
567+
}
566568
if len(req.Body.WorkflowUUIDs) > 0 {
567569
opts = append(opts, WithWorkflowIDs(req.Body.WorkflowUUIDs))
568570
}

0 commit comments

Comments
 (0)