🐛 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:
parent
04b047a823
commit
7fc4d54055
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ def list_components(
|
||||||
page: int = 1,
|
page: int = 1,
|
||||||
limit: int = 10,
|
limit: int = 10,
|
||||||
store_service: StoreService = Depends(get_store_service),
|
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:
|
try:
|
||||||
result = store_service.query_components(
|
result = store_service.query_components(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue