From 50327ddb7a95a12cdc60a03eeaf76aafe9c97e53 Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Tue, 20 Aug 2024 16:01:59 +0200 Subject: [PATCH] Moved saerch field identifier to const --- .../Query/Location/CriterionVisitor/Location/IsBookmarked.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/Query/Location/CriterionVisitor/Location/IsBookmarked.php b/src/lib/Query/Location/CriterionVisitor/Location/IsBookmarked.php index 3b7ac5e2..1603ffd8 100644 --- a/src/lib/Query/Location/CriterionVisitor/Location/IsBookmarked.php +++ b/src/lib/Query/Location/CriterionVisitor/Location/IsBookmarked.php @@ -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) @@ -32,7 +34,7 @@ public function visit( ): string { $userId = $this->getUserId($criterion); - return 'location_bookmarked_user_ids_mid:"' . $userId . '"'; + return self::SEARCH_FIELD . ':"' . $userId . '"'; } /**