Improve the frontend and fix TODOs
This commit is contained in:
@@ -208,7 +208,7 @@ async def delete_supplier(
|
||||
|
||||
|
||||
@router.get(
|
||||
route_builder.build_base_route("suppliers/count"),
|
||||
route_builder.build_base_route("count"),
|
||||
response_model=dict
|
||||
)
|
||||
async def count_suppliers(
|
||||
@@ -219,8 +219,8 @@ async def count_suppliers(
|
||||
try:
|
||||
service = SupplierService(db)
|
||||
|
||||
# Use search with high limit to get all suppliers
|
||||
search_params = SupplierSearchParams(limit=10000)
|
||||
# Use search with maximum allowed limit to get all suppliers
|
||||
search_params = SupplierSearchParams(limit=1000)
|
||||
suppliers = await service.search_suppliers(
|
||||
tenant_id=UUID(tenant_id),
|
||||
search_params=search_params
|
||||
|
||||
Reference in New Issue
Block a user