mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-26 20:29:06 -05:00
fix: events and workflow runs pagination (#75)
This commit is contained in:
@@ -39,12 +39,12 @@ func (t *EventService) EventList(ctx echo.Context, request gen.EventListRequestO
|
||||
}
|
||||
|
||||
if request.Params.Limit != nil {
|
||||
limit := int(*request.Params.Limit)
|
||||
limit = int(*request.Params.Limit)
|
||||
listOpts.Limit = &limit
|
||||
}
|
||||
|
||||
if request.Params.Offset != nil {
|
||||
offset := int(*request.Params.Offset)
|
||||
offset = int(*request.Params.Offset)
|
||||
listOpts.Offset = &offset
|
||||
}
|
||||
|
||||
|
||||
@@ -22,12 +22,12 @@ func (t *WorkflowService) WorkflowRunList(ctx echo.Context, request gen.Workflow
|
||||
}
|
||||
|
||||
if request.Params.Limit != nil {
|
||||
limit := int(*request.Params.Limit)
|
||||
limit = int(*request.Params.Limit)
|
||||
listOpts.Limit = &limit
|
||||
}
|
||||
|
||||
if request.Params.Offset != nil {
|
||||
offset := int(*request.Params.Offset)
|
||||
offset = int(*request.Params.Offset)
|
||||
listOpts.Offset = &offset
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user