From b74eb6f314ef0e88876962002ec88de8803f6ddb Mon Sep 17 00:00:00 2001 From: Piotr Surowiec Date: Fri, 17 Nov 2023 13:53:25 +0100 Subject: [PATCH] fix: use an existing `api_key` variable --- enterprise/api/v1/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/api/v1/views.py b/enterprise/api/v1/views.py index fb0f820cda..9b7870ba9f 100644 --- a/enterprise/api/v1/views.py +++ b/enterprise/api/v1/views.py @@ -549,7 +549,7 @@ def algolia_key(self, request, *args, **kwargs): raise NotFound(_("User is not linked to any enterprise customers.")) secured_key = SearchClient.generate_secured_api_key( - settings.ENTERPRISE_ALGOLIA_SEARCH_API_KEY, + api_key, { "filters": " OR ".join( f"enterprise_customer_uuids:{enterprise_customer_uuid}"