🔧 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:
Gabriel Luiz Freitas Almeida 2023-10-23 21:19:28 -03:00
commit c695a4fd61

View file

@ -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: