File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -6,20 +6,10 @@ import (
6
6
"github.com/netlify/open-api/go/porcelain/context"
7
7
)
8
8
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
-
19
9
// ListFormsBySiteId lists the forms of a particular site
20
10
func (n * Netlify ) ListFormsBySiteId (ctx context.Context , siteID string ) ([]* models.Form , error ) {
21
11
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 )
23
13
if err != nil {
24
14
return nil , err
25
15
}
You can’t perform that action at this time.
0 commit comments