frontend / api/analytics/metrics / getSuppliersCount
Variable:
getSuppliersCount()
constgetSuppliersCount: () =>Promise<number> =getSupplierCount
Defined in: src/api/analytics/metrics.ts:92
Alias for getSupplierCount() - kept for backward compatibility with Dashboard.tsx
Fetch total suppliers count from backend. Returns 0 on any error (tolerant).
Returns
Promise<number>
Total number of suppliers
Example
const count = await getSupplierCount();
console.log(count); // 25Deprecated
Use getSupplierCount() instead