3
0

Add missing namespaceID filter params

This commit is contained in:
Denis Arh 2019-04-29 18:48:01 +02:00
parent 19f6168506
commit 01b3cc529b
3 changed files with 10 additions and 6 deletions

View File

@ -42,6 +42,8 @@ func (Chart) New() *Chart {
func (ctrl Chart) List(ctx context.Context, r *request.ChartList) (interface{}, error) {
f := types.ChartFilter{
NamespaceID: r.NamespaceID,
Query: r.Query,
PerPage: r.PerPage,
Page: r.Page,

View File

@ -44,9 +44,10 @@ func (Module) New() *Module {
func (ctrl *Module) List(ctx context.Context, r *request.ModuleList) (interface{}, error) {
f := types.ModuleFilter{
Query: r.Query,
PerPage: r.PerPage,
Page: r.Page,
NamespaceID: r.NamespaceID,
Query: r.Query,
PerPage: r.PerPage,
Page: r.Page,
}
set, filter, err := ctrl.module.With(ctx).Find(f)

View File

@ -38,9 +38,10 @@ func (Trigger) New() *Trigger {
func (ctrl Trigger) List(ctx context.Context, r *request.TriggerList) (interface{}, error) {
f := types.TriggerFilter{
Query: r.Query,
PerPage: r.PerPage,
Page: r.Page,
NamespaceID: r.NamespaceID,
Query: r.Query,
PerPage: r.PerPage,
Page: r.Page,
}
set, filter, err := ctrl.trigger.With(ctx).Find(f)