(
projectId: string,
)
| 37 | } |
| 38 | |
| 39 | export async function getOneProject( |
| 40 | projectId: string, |
| 41 | ): Promise<Project | null> { |
| 42 | try { |
| 43 | return await fetchApi(`/projects/${projectId}`, ProjectSchema); |
| 44 | } catch (error) { |
| 45 | console.error("[getOneProject] failed", error); |
| 46 | return null; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | export async function deleteProject(projectId: string): Promise<void> { |
| 51 | await fetchApiVoid(`/projects/${projectId}`, { |
no test coverage detected
searching dependent graphs…