From c5262f39f2eb5f791b01dcab4989af452e2ce13a Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 19 Oct 2023 14:08:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20refactor(api=5Fkey.py):=20update?= =?UTF-8?q?=20encrypt=5Fapi=5Fkey=20function=20call=20to=20pass=20settings?= =?UTF-8?q?=5Fservice=20as=20a=20keyword=20argument=20for=20clarity=20and?= =?UTF-8?q?=20maintainability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/api_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/api/v1/api_key.py b/src/backend/langflow/api/v1/api_key.py index 4ec6d8175..762014fab 100644 --- a/src/backend/langflow/api/v1/api_key.py +++ b/src/backend/langflow/api/v1/api_key.py @@ -79,7 +79,7 @@ def save_store_api_key( try: # Encrypt the API key encrypted = auth_utils.encrypt_api_key( - api_key, fernet=auth_utils.get_fernet(settings_service) + api_key, settings_service=settings_service ) current_user.store_api_key = encrypted db.commit()