🔒 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:
Gabriel Luiz Freitas Almeida 2023-10-19 14:08:51 -03:00
commit c5262f39f2

View file

@ -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()