MCPcopy Create free account
hub / github.com/cursor/community-plugins / toSearchResult

Function toSearchResult

apps/cursor/src/data/client-queries.ts:20–28  ·  view source on GitHub ↗
(company: CompanyRow)

Source from the content-addressed store, hash-verified

18};
19
20function 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected