Skip to content

Commit

Permalink
Moved saerch field identifier to const
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Aug 20, 2024
1 parent a5e8d63 commit 50327dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

final class IsBookmarked extends CriterionVisitor
{
private const SEARCH_FIELD = 'location_bookmarked_user_ids_mid';

private PermissionResolver $permissionResolver;

public function __construct(PermissionResolver $permissionResolver)
Expand All @@ -32,7 +34,7 @@ public function visit(
): string {
$userId = $this->getUserId($criterion);

return 'location_bookmarked_user_ids_mid:"' . $userId . '"';
return self::SEARCH_FIELD . ':"' . $userId . '"';
}

/**
Expand Down

0 comments on commit 50327dd

Please sign in to comment.