Commit 47b0187b authored by Martin Lowe's avatar Martin Lowe 🇨🇦
Browse files

Update project user collection to use obj spread

parent 577042be
......@@ -278,7 +278,7 @@ export class GitlabSyncRunner {
// build the user mapping to pass to cleanup
let projectUsers: Record<string, EclipseUserAccess> = {};
for (const pidx in projects) {
projectUsers = Object.assign(projectUsers, this.getUserList(this.eclipseProjectCache[projects[pidx]]));
projectUsers = {...projectUsers, ...this.getUserList(this.eclipseProjectCache[projects[pidx]])};
// clean up additional users
await this.removeAdditionalUsers(projectUsers, self, ...projects);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment