Skip to content

Commit

Permalink
Merge pull request #1924 from Permify/entity-filter-fix-entrance
Browse files Browse the repository at this point in the history
fix(internal): fix comparison condition for entity entrance type.
  • Loading branch information
tolgaOzen authored Jan 17, 2025
2 parents 25fada6 + e03819b commit c910e05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/engines/entityFilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func (engine *EntityFilter) attributeEntrance(
g *errgroup.Group, // An errgroup used for executing goroutines.
publisher *BulkEntityPublisher, // A custom publisher that publishes results in bulk.
) error { // Returns an error if one occurs during execution.
if request.GetEntrance().GetType() != entrance.TargetEntrance.GetType() {
return nil
}

if !visits.AddEA(entrance.TargetEntrance.GetType(), entrance.TargetEntrance.GetValue()) { // If the entity and relation has already been visited.
return nil
}
Expand Down

0 comments on commit c910e05

Please sign in to comment.