fix: save store API key in database after encryption (#2866)
This commit is contained in:
parent
41143b1e58
commit
922ed594e7
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ def save_store_api_key(
|
|||
# Encrypt the API key
|
||||
encrypted = auth_utils.encrypt_api_key(api_key, settings_service=settings_service)
|
||||
current_user.store_api_key = encrypted
|
||||
db.add(current_user)
|
||||
db.commit()
|
||||
return {"detail": "API Key saved"}
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue