diff --git a/pkg/service/script_policy.go b/pkg/service/script_policy.go index 5bd08cd..55d8733 100644 --- a/pkg/service/script_policy.go +++ b/pkg/service/script_policy.go @@ -62,8 +62,8 @@ func (svc *Service) ListScriptPolicy(ctx context.Context, request *api.ListScrip } items, err := svc.DB.ScriptPolicy().List(ctx, filter, model.Page{ - Number: request.Page.GetPage(), - Size: request.Page.GetLimit(), + Number: request.Page.Number, + Size: request.Page.Size, }) if err != nil { return nil, err diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index 7955131..447aa3c 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -77,8 +77,8 @@ func (svc *Service) ListSubmissions(ctx context.Context, request *api.ListSubmis } items, err := svc.DB.Submissions().List(ctx, filter, model.Page{ - Number: request.Page.GetPage(), - Size: request.Page.GetLimit(), + Number: request.Page.Number, + Size: request.Page.Size, }) if err != nil { return nil, err