Updates /connector/sharepoint/site_page.go

Updates dependencies to betasdk.
This commit is contained in:
Danny Adams 2023-01-27 11:38:29 -05:00
parent afe8f04a45
commit b2ce209eee

View File

@ -3,10 +3,9 @@ package sharepoint
import ( import (
"context" "context"
"github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/alcionai/corso/src/internal/connector/graph/betasdk"
"github.com/microsoftgraph/msgraph-beta-sdk-go/sites" "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
"github.com/alcionai/corso/src/internal/connector/graph/betasdk/sites"
"github.com/alcionai/corso/src/internal/connector/graph"
"github.com/alcionai/corso/src/internal/connector/support" "github.com/alcionai/corso/src/internal/connector/support"
) )
@ -14,7 +13,7 @@ import (
// Returns error if error experienced during the call // Returns error if error experienced during the call
func GetSitePage( func GetSitePage(
ctx context.Context, ctx context.Context,
serv graph.Servicer, serv betasdk.Service,
siteID string, siteID string,
pages []string, pages []string,
) ([]models.SitePageable, error) { ) ([]models.SitePageable, error) {
@ -34,7 +33,7 @@ func GetSitePage(
} }
// fetchPages utility function to return the tuple of item // fetchPages utility function to return the tuple of item
func fetchPages(ctx context.Context, bs graph.Servicer, siteID string) ([]listTuple, error) { func fetchPages(ctx context.Context, bs betasdk.Service, siteID string) ([]listTuple, error) {
var ( var (
builder = bs.Client().SitesById(siteID).Pages() builder = bs.Client().SitesById(siteID).Pages()
opts = fetchPageOptions() opts = fetchPageOptions()