Updated to /connector/sharepoint/data_collections.go

Control.Options added to NewCollection() calls.
This commit is contained in:
Danny Adams 2023-01-21 02:08:29 -05:00
parent f9e3a57ec3
commit f036d9dfb8

View File

@ -123,7 +123,7 @@ func collectLists(
return nil, errors.Wrapf(err, "failed to create collection path for site: %s", siteID)
}
collection := NewCollection(dir, serv, List, updater.UpdateStatus)
collection := NewCollection(dir, serv, List, updater.UpdateStatus, ctrlOpts)
collection.AddJob(tuple.id)
spcs = append(spcs, collection)
@ -197,7 +197,7 @@ func collectPages(
return nil, errors.Wrapf(err, "failed to create collection path for site: %s", siteID)
}
collection := NewCollection(dir, serv, Pages, updater.UpdateStatus)
collection := NewCollection(dir, serv, Pages, updater.UpdateStatus, ctrlOpts)
collection.AddJob(tuple.id)
spcs = append(spcs, collection)