Skip to content

Commit

Permalink
fix: use an existing api_key variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath authored Nov 17, 2023
1 parent 174c826 commit b74eb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit b74eb6f

Please sign in to comment.