(projectId: string, provider: string)
| 35 | } |
| 36 | |
| 37 | export async function getProjectService(projectId: string, provider: string) { |
| 38 | const connection = await prisma.projectServiceConnection.findFirst({ |
| 39 | where: { projectId, provider }, |
| 40 | }); |
| 41 | |
| 42 | return connection ? deserializeServiceData(connection) : null; |
| 43 | } |
| 44 | |
| 45 | export async function upsertProjectServiceConnection( |
| 46 | projectId: string, |
no test coverage detected