🔒 refactor(api_key.py): update encrypt_api_key function call to pass settings_service as a keyword argument for clarity and maintainability
This commit is contained in:
parent
218788d5df
commit
c5262f39f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue