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

Add user role relationship only if not present in jobstate #224

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/steps/role_assignments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export async function fetchRoleAssignments(
},
});

await jobState.addRelationship(roleUserRelationship);
if (!jobState.hasKey(roleUserRelationship._key)) {
await jobState.addRelationship(roleUserRelationship);
}
});
} catch (err) {
if (
Expand Down
Loading