Skip to content

Commit 82efd76

Browse files
committed
chore: generate code
Signed-off-by: Michael Adler <[email protected]>
1 parent 16b8c1d commit 82efd76

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

api/wfx.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ func (server WfxServer) GetJobs(ctx context.Context, request api.GetJobsRequestO
113113
if request.Params.ParamGroup != nil {
114114
filter.Group = *request.Params.ParamGroup
115115
}
116-
if request.Params.ParamTag != nil {
117-
filter.Tags = *request.Params.ParamTag
118-
}
116+
filter.Tags = request.Params.ParamTag
119117

120118
pagination := persistence.PaginationParams{Offset: 0, Limit: defaultPageLimit}
121119
if request.Params.ParamOffset != nil {

cmd/wfxctl/cmd/job/query/query.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ wfxctl job query --state=CREATED
4949
if groups := baseCmd.Groups; len(groups) > 0 {
5050
params.ParamGroup = &groups
5151
}
52-
if tags := baseCmd.Tags; len(tags) > 0 {
53-
params.ParamTag = &tags
54-
}
52+
params.ParamTag = baseCmd.Tags
5553

5654
params.ParamOffset = &baseCmd.Offset
5755
params.ParamLimit = &baseCmd.Limit

generated/api/wfx.openapi.gen.go

Lines changed: 10 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)