Skip to content

Commit

Permalink
fix: RequestQuery の CreatedBy が削除されていたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
reiroop committed Dec 28, 2024
1 parent 6e26ec7 commit ef85c50
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions model/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ type RequestDetail struct {
}

type RequestQuery struct {
Sort *string
Target *uuid.UUID
Status *string
Since *time.Time
Until *time.Time
Limit int
Offset int
Tag *string
Group *string
Sort *string
Target *uuid.UUID
Status *string
Since *time.Time
Until *time.Time
Limit int
Offset int
Tag *string
Group *string
CreatedBy *uuid.UUID
}
19 changes: 10 additions & 9 deletions router/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,16 @@ func (h Handlers) GetRequests(c echo.Context) error {
cratedBy = &u
}
query := model.RequestQuery{
Sort: sort,
Target: target,
Status: ss,
Since: since,
Until: until,
Limit: limit,
Offset: offset,
Tag: tag,
Group: group,
Sort: sort,
Target: target,
Status: ss,
Since: since,
Until: until,
Limit: limit,
Offset: offset,
Tag: tag,
Group: group,
CreatedBy: cratedBy,
}

modelrequests, err := h.Repository.GetRequests(ctx, query)
Expand Down

0 comments on commit ef85c50

Please sign in to comment.