Skip to content

Commit

Permalink
Update team consistency check to account for guest invitation IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldar committed Nov 11, 2024
1 parent 216707c commit 21aa3dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plausible/data_migration/teams_consistency_check.ex
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ defmodule Plausible.DataMigration.TeamsConsitencyCheck do
where:
(i.role == :viewer and parent_as(:guest_invitation).role == :viewer) or
(i.role == :admin and parent_as(:guest_invitation).role == :editor),
where: i.invitation_id == parent_as(:guest_invitation).invitation_id,
select: 1
)

Expand Down

0 comments on commit 21aa3dd

Please sign in to comment.