mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-04 21:32:39 +08:00
fix: unit tests
This commit is contained in:
@@ -75,7 +75,7 @@ func (wf *WorkflowExecutionFilter) GetLabels() []*Label {
|
||||
}
|
||||
|
||||
func applyWorkflowExecutionFilter(sb sq.SelectBuilder, request *request.Request) (sq.SelectBuilder, error) {
|
||||
if request.Filter == nil {
|
||||
if !request.HasFilter() {
|
||||
return sb, nil
|
||||
}
|
||||
|
||||
@@ -865,8 +865,7 @@ func (c *Client) ListWorkflowExecutions(namespace, workflowTemplateUID, workflow
|
||||
return nil, err
|
||||
}
|
||||
|
||||
sb = *request.Pagination.ApplyToSelect(&sb)
|
||||
|
||||
sb = *request.ApplyPaginationToSelect(&sb)
|
||||
if err := c.DB.Selectx(&workflows, sb); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user