( projectId: string, )
| 175 | } |
| 176 | |
| 177 | export async function fetchProjectCohorts( |
| 178 | projectId: string, |
| 179 | ): Promise<CohortMetadata[]> { |
| 180 | return db.cohort.findMany({ |
| 181 | where: { projectId }, |
| 182 | select: { id: true, name: true }, |
| 183 | }); |
| 184 | } |
| 185 | |
| 186 | export function buildAllCohortsMembershipQuery( |
| 187 | projectId: string, |
no outgoing calls
no test coverage detected