Skip to content

Commit 9e659aa

Browse files
committed
Remove listForms dependency
1 parent b4fb18b commit 9e659aa

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

go/porcelain/forms.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,10 @@ import (
66
"github.com/netlify/open-api/go/porcelain/context"
77
)
88

9-
// ListForms lists the forms a user has access to.
10-
func (n *Netlify) ListForms(ctx context.Context, params *operations.ListFormsParams) ([]*models.Form, error) {
11-
resp, err := n.Netlify.Operations.ListForms(params, context.GetAuthInfo(ctx))
12-
if err != nil {
13-
return nil, err
14-
}
15-
16-
return resp.Payload, nil
17-
}
18-
199
// ListFormsBySiteId lists the forms of a particular site
2010
func (n *Netlify) ListFormsBySiteId(ctx context.Context, siteID string) ([]*models.Form, error) {
2111
authInfo := context.GetAuthInfo(ctx)
22-
resp, err := n.Netlify.Operations.ListForms(operations.NewListFormsParams().WithSiteID(&siteID), authInfo)
12+
resp, err := n.Netlify.Operations.ListSiteForms(operations.NewListSiteFormsParams().WithSiteID(&siteID), authInfo)
2313
if err != nil {
2414
return nil, err
2515
}

0 commit comments

Comments
 (0)