Spaces:
Runtime error
Runtime error
File size: 267 Bytes
56b6519 |
1 2 3 4 5 6 7 8 |
import { getAudits } from './audits';
export const getAuditsByClientName = async (clientName: string) => {
// get all audits and filter by clientName
const audits = await getAudits();
return audits.datas.filter(audit => audit.company?.name === clientName);
};
|