(id: string)
| 2 | import { getProjectAccess } from './access.service'; |
| 3 | |
| 4 | export function getShareOverviewById(id: string) { |
| 5 | return db.shareOverview.findFirst({ |
| 6 | where: { |
| 7 | id, |
| 8 | }, |
| 9 | include: { |
| 10 | project: true, |
| 11 | }, |
| 12 | }); |
| 13 | } |
| 14 | |
| 15 | export function getShareByProjectId(projectId: string) { |
| 16 | return db.shareOverview.findUnique({ |