Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Fix chunking lists when more than 50 ProjectUsers
Browse files Browse the repository at this point in the history
Currently full list of users is passed when looping through chunks
  • Loading branch information
joefields authored Apr 24, 2020
1 parent 31aadb3 commit 983a817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BimProjectSetupCommon/Workflows/ProjectUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private void AddUsers(List<ProjectUser> _projectUsers)
IEnumerable<List<ProjectUser>> chunks = Util.SplitList(users.ToList());
foreach (List<ProjectUser> list in chunks)
{
IRestResponse response = _projectsApi.PostUsersImport(project.id, hqAdmin.uid, users.ToList());
IRestResponse response = _projectsApi.PostUsersImport(project.id, hqAdmin.uid, list);
ProjectUserResponseHandler(response);
}
}
Expand Down

0 comments on commit 983a817

Please sign in to comment.