🔧 chore(store.py): add "user_created.name" and "is_component" fields to the list of fields returned by list_components() function
🔒 refactor(store.py): refactor the logic to handle the case when store_api_Key is not provided
This commit is contained in:
parent
6e8a98d6e3
commit
c695a4fd61
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ def list_components(
|
|||
settings_service=Depends(get_settings_service),
|
||||
):
|
||||
try:
|
||||
fields = ["id", "name", "description", "user_created"]
|
||||
fields = ["id", "name", "description", "user_created.name", "is_component"]
|
||||
if store_api_Key:
|
||||
decrypted = auth_utils.decrypt_api_key(store_api_Key, settings_service)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue