Fixed up the find object API

This commit is contained in:
Donkie
2023-04-03 22:02:38 +02:00
parent 08cf68e937
commit 6a58caa2ec
3 changed files with 18 additions and 6 deletions

View File

@@ -44,8 +44,8 @@ class VendorUpdateParameters(VendorParameters):
description="Get a list of vendors that matches the search query.",
response_model_exclude_none=True,
)
async def find(_name: Union[int, None] = None) -> list[Vendor]:
return []
async def find(name: Optional[str] = None) -> list[Vendor]:
return [] # TODO: Implement
@router.get(