Updates to /sharepoint/data_collections.go

Adds new identifier to NewCollection() call
This commit is contained in:
Danny Adams 2023-01-19 12:56:01 -05:00
parent dd57457b10
commit 19446b85e5

View File

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