🐛 fix(store.py): change type of store_api_Key parameter from str to Optional[str] to handle case when user does not provide an API key

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-01 09:04:46 -03:00
commit 7fc4d54055

View file

@ -75,7 +75,7 @@ def list_components(
page: int = 1,
limit: int = 10,
store_service: StoreService = Depends(get_store_service),
store_api_Key: str = Depends(get_optional_user_store_api_key),
store_api_Key: Optional[str] = Depends(get_optional_user_store_api_key),
):
try:
result = store_service.query_components(