Skip to content

Commit

Permalink
Fix SetMembershipPolicyRevisionIssuer issuing empty revisions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuxie committed Jan 14, 2025
1 parent bb7ab93 commit e39c462
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MembershipPolicies/SetMembershipPolicyRevisionIssuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ export class StandardMembershipPolicyRevisionIssuer
setMembershipDelta,
this.policyRevisionIssuer.currentRevision
);
if (
changes.addedMemberMatches.length === 0 &&
changes.removedMemberMatches.length === 0
) {
return;
}
this.currentRevision = this.currentRevision.reviseFromChanges(changes);
this.emit('revision', this.currentRevision, changes, previousRevision);
}
Expand Down

0 comments on commit e39c462

Please sign in to comment.