(company: CompanyRow)
| 18 | }; |
| 19 | |
| 20 | function toSearchResult(company: CompanyRow): CompanySearchResult { |
| 21 | return { |
| 22 | id: company.id, |
| 23 | name: company.name, |
| 24 | slug: company.slug, |
| 25 | image: company.image ?? "", |
| 26 | location: company.location ?? "", |
| 27 | }; |
| 28 | } |
| 29 | |
| 30 | // Searches the entire companies table by name (case-insensitive), rather than |
| 31 | // filtering an already-loaded page of results. |
nothing calls this directly
no outgoing calls
no test coverage detected